ModelRegistryConfig

org.llm4s.model.ModelRegistryConfig
See theModelRegistryConfig companion object
@Stable
final case class ModelRegistryConfig

Configuration controlling how the model registry data is loaded.

Value parameters

filePath

Optional filesystem path to a model metadata JSON file, overrides resourcePath when set.

resourcePath

Optional classpath resource path to load model metadata from; defaults to the bundled LiteLLM metadata file.

url

Optional HTTP URL to fetch model metadata from, overrides both resourcePath and filePath when set. Build one with ModelRegistryConfig.apply (or start from ModelRegistryConfig.default) and change it with the with* setters, each of which takes the value or an Option; the constructor and copy are private, so a new field never breaks callers.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withFilePath(filePath: String): ModelRegistryConfig

Sets the filesystem path to load model metadata from; it overrides resourcePath.

Sets the filesystem path to load model metadata from; it overrides resourcePath.

Attributes

def withFilePath(filePath: Option[String]): ModelRegistryConfig

Sets, or with None clears, the filesystem path to load model metadata from.

Sets, or with None clears, the filesystem path to load model metadata from.

Attributes

def withResourcePath(resourcePath: String): ModelRegistryConfig

Sets the classpath resource to load model metadata from.

Sets the classpath resource to load model metadata from.

Attributes

def withResourcePath(resourcePath: Option[String]): ModelRegistryConfig

Sets, or with None clears, the classpath resource to load model metadata from.

Sets, or with None clears, the classpath resource to load model metadata from.

Attributes

def withUrl(url: String): ModelRegistryConfig

Sets the HTTP URL to fetch model metadata from; it overrides resourcePath and filePath.

Sets the HTTP URL to fetch model metadata from; it overrides resourcePath and filePath.

Attributes

def withUrl(url: Option[String]): ModelRegistryConfig

Sets, or with None clears, the HTTP URL to fetch model metadata from.

Sets, or with None clears, the HTTP URL to fetch model metadata from.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product