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
Reset zoom Hide graph Show graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
The endpoint this config will contact, when it is known statically.
The endpoint this config will contact, when it is known statically.
Used by policy checks and diagnostics that need to know where traffic will go without knowing which provider it belongs to. None means the config carries no single URL — not that it makes no network calls.
Attributes
Definition Classes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
Returns
a string representation of the object.
Definition Classes
Any
The same provider and credentials, pointed at a different model.
The same provider and credentials, pointed at a different model.
Attributes
Definition Classes
Attributes
Inherited from:
Product
Attributes
Inherited from:
Product
Canonical id of the provider this config addresses, e.g. ProviderId("openai").
Canonical id of the provider this config addresses, e.g. ProviderId("openai").
Attributes