ConfigurableModelProviderProperties

data class ConfigurableModelProviderProperties(var llms: Map<String, String> = emptyMap(), var embeddingServices: Map<String, String> = emptyMap(), var defaultLlm: String = "gpt-4.1-mini", var defaultEmbeddingModel: String? = null, var roles: Map<String, Map<String, <Error class: unknown class>>> = emptyMap(), var credentialServiceCacheSize: Int = 500)

Configuration properties for the model provider

Constructors

Link copied to clipboard
constructor(llms: Map<String, String> = emptyMap(), embeddingServices: Map<String, String> = emptyMap(), defaultLlm: String = "gpt-4.1-mini", defaultEmbeddingModel: String? = null, roles: Map<String, Map<String, <Error class: unknown class>>> = emptyMap(), credentialServiceCacheSize: Int = 500)

Properties

Link copied to clipboard

Upper bound on LLM services built from user-supplied keys and held for reuse.

Link copied to clipboard

Default embedding model name. Must be an embedding model name. Need not be set, in which case it defaults to null.

Link copied to clipboard

Default LLM name. Must be an LLM name. It's good practice to override this in configuration.

Link copied to clipboard

Map of role to embedding service name. May not include the default embedding service.

Link copied to clipboard

Map of role to LLM name. Each entry will require an LLM to be registered with the same name. May not include the default LLM.

Link copied to clipboard
var roles: Map<String, Map<String, <Error class: unknown class>>>

Map of role to provider to options, for deployments whose provider is not fixed - a bring-your-own-key application, or one configured for failover across providers.

Functions

Link copied to clipboard

The embedding counterpart of allWellKnownLlmNames. Shorter because embedding roles have no nested per-provider shape: a role maps to one name, and there is default-embedding-model.

Link copied to clipboard

Every LLM name this configuration mentions, across all three places one can appear: the flat llms role map, the nested roles map (one model per provider), and default-llm.