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 same timeouts block a chat section has. Only request applies, since an embedding call does not stream. Absent means the provider's own default.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product