EmbeddingProviderSection

org.llm4s.llmconnect.spi.EmbeddingProviderSection
See theEmbeddingProviderSection companion object
@Stable
final case class EmbeddingProviderSection

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

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 withBaseUrl(baseUrl: String): EmbeddingProviderSection
def withBaseUrl(baseUrl: Option[String]): EmbeddingProviderSection
def withModel(model: String): EmbeddingProviderSection
def withModel(model: Option[String]): EmbeddingProviderSection

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product