org.llm4s.llmconnect.config.GeminiConfig
See theGeminiConfig companion object
case class GeminiConfig(apiKey: String, model: String, baseUrl: String, contextWindow: Int, reserveCompletion: Int) extends ProviderConfig
Configuration for the Google Gemini API.
Prefer GeminiConfig.fromValues over the primary constructor; it resolves contextWindow and reserveCompletion automatically from the model name.
Value parameters
- apiKey
-
Google API key; redacted in
toString. - baseUrl
-
API base URL.
- contextWindow
-
Model's total token capacity (prompt + completion combined).
- model
-
Model identifier, e.g.
"gemini-2.0-flash". - reserveCompletion
-
Tokens held back from prompt history for the completion.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProviderConfigclass Objecttrait Matchableclass Any
Members list
In this article