GeminiProvider
Registration for the Google Gemini API.
Attributes
- Graph
-
- Supertypes
- Self type
-
GeminiProvider.type
Members list
Value members
Concrete methods
Constructs the client for a ProviderConfig this provider produced.
Constructs the client for a ProviderConfig this provider produced.
config is whatever the caller passed, so implementations must check the type rather than cast — ProviderDescriptor.expectConfig does that and produces the standard mismatch error.
A client that sends its own HTTP requests sends them through options.httpClient when it is set, and does not close that client, and declares so with features.customHttpClient = true (it defaults to false, which a provider built on a vendor SDK keeps).
Attributes
Turns a validated config section into the runtime ProviderConfig for this provider.
Turns a validated config section into the runtime ProviderConfig for this provider.
The section has already been checked against configSpec, so required fields are present and section.extras holds exactly the declared provider-specific keys that have a value (defaults applied, deprecated aliases resolved). A Left here means something configSpec cannot express (a malformed value, say).
Value parameters
- providerName
-
the user's instance name (
llm4s.providers.<name>), for error messages.
Attributes
Sends its requests through LlmClientOptions.httpClient when one is supplied (#2341).
Sends its requests through LlmClientOptions.httpClient when one is supplied (#2341).
Attributes
- Definition Classes
Concrete fields
provider = "google" has always been accepted for Gemini.
provider = "google" has always been accepted for Gemini.
Attributes
The key falls back to llm4s.credentials.gemini.apiKey - for provider = "google" too, which is this provider under an alias - bound to GOOGLE_API_KEY, else GEMINI_API_KEY.
The key falls back to llm4s.credentials.gemini.apiKey - for provider = "google" too, which is this provider under an alias - bound to GOOGLE_API_KEY, else GEMINI_API_KEY.
Attributes
Canonical id, e.g. ProviderId("openai"). Must be unique within a registry.
Canonical id, e.g. ProviderId("openai"). Must be unique within a registry.
Attributes
Live model discovery, when the provider's API offers it.
Live model discovery, when the provider's API offers it.