CohereEmbeddingConfigKeys

org.llm4s.config.CohereEmbeddingConfigKeys

Environment-variable names recognised by llm4s-cohere.

A key belongs with the code that reads it, so these live here and not in ConfigKeys, which must not name variables for a provider that may not be on the classpath. They are bound in this module's reference.conf: the key under the shared llm4s.credentials.cohere, the base URL and model under llm4s.embeddings.cohere.

COHERE_API_KEY is also bound by llm4s-openai-compatible (Cohere chat) and llm4s-rag (the Cohere reranker), so one key serves all three; it is bound here too so that llm4s-cohere works without either.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

val COHERE_API_KEY: String

Cohere API key.

Cohere API key.

Attributes

Overrides the Cohere embedding base URL. Defaults to "https://api.cohere.com".

Overrides the Cohere embedding base URL. Defaults to "https://api.cohere.com".

Attributes

Selects the Cohere embedding model when using the legacy provider format.

Selects the Cohere embedding model when using the legacy provider format.

Attributes