Setup
Set your API key as an environment variable:Usage
Available Models
Provider Options
Customize Google-specific parameters:Available Options
Thinking Config (Reasoning Models)
For normalized reasoning-depth control, usereasoning={"budget": ...}:
provider_options:
include_thoughts must be enabled. See Thinking for the streaming callback model.
Safety Settings
Configure content safety thresholds. You can use either dict or list format:BLOCK_NONE, BLOCK_ONLY_HIGH, BLOCK_MEDIUM_AND_ABOVE, BLOCK_LOW_AND_ABOVE