EmbeddingProviderSection
org.llm4s.llmconnect.spi.EmbeddingProviderSection
@Stable
final case class EmbeddingProviderSection(apiKey: Option[String], baseUrl: Option[String], model: Option[String], timeouts: ProviderTimeouts)
One embedding provider's llm4s.embeddings.<id> section, as read from config.
The shape is the same for every provider, which is what lets llm4s-core parse it without knowing which providers exist: the provider-specific part is what EmbeddingProviderDescriptor.buildConfig makes of it.
Value parameters
- apiKey
-
llm4s.embeddings.<id>.apiKey. - baseUrl
-
llm4s.embeddings.<id>.baseUrl. - model
-
llm4s.embeddings.<id>.model. - timeouts
-
llm4s.embeddings.<id>.timeouts: how long an embedding request may take, as the sametimeoutsblock a chat section has. Onlyrequestapplies, since an embedding call does not stream. Absent means the provider's own default.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article