Skip to main content

Module config

Module config 

Source
Expand description

Shared configuration of every Google model and service.

Structs§

GoogleConfig
Configuration shared by the models and services of one provider instance.

Constants§

API_KEY_ENV
Environment variable read for the API key when none is configured.
API_KEY_HEADER
Header carrying the API key.
AUTH_TOKENS_PATH
Path of the ephemeral auth token endpoint (relative to the origin).
CANONICAL_OPTIONS_KEY
Canonical provider options and metadata key, always consulted in addition to the configured name.
DEFAULT_BASE_URL
Default base URL (Gemini API, v1beta).
DEFAULT_NAME
Default provider name.
DOWNLOAD_PATH_PREFIX
Path prefix of the media download endpoint (relative to the origin).
UPLOAD_PATH
Path of the resumable upload endpoint (relative to the origin).
USER_AGENT
User-agent suffix appended to every request.

Type Aliases§

SharedConfig
Shared handle to the configuration.