Python Gemini API Client Updates to v2.9.0-rc0
sdkaideprecation
feature patch
The Python Gemini API client has released version 2.9.0-rc0, featuring a complete replacement of its interactions implementation with an unchanged public API surface. New features include support for Gemma local tokenizers and exposure of Computer Use API fields. This release also addresses several bugs, including compatibility issues with aiohttp and handling of API keys in websocket URLs.
- →Add ServiceTier to UsageMetadata
- →Expose Computer Use API fields
- →Gemma 4 local tokenizer support
- →Add presence_penalty, frequency_penalty, and cached_content to models.proto
- →Rename usage to total_usage in StreamMetadata
Features (5) ›
- Add ServiceTier to UsageMetadata
- Expose Computer Use API fields
- Gemma 4 local tokenizer support
- interaction-api Add presence_penalty, frequency_penalty, and cached_content to models.proto
- interaction-api Rename usage to total_usage in StreamMetadata
Fixes (5) ›
Add fallback for aiohttp.readline without max_line_length for backward compatibility because we still want to keep aiohttp as optional dependency , closes #2487
- Fix header
- Keep live music API keys out of websocket urls
- Make transformers an optional dependency for local tokenizers, also add other dependencies to local-tokenizer-extras
- Use .model_copy() instead of deprecated .copy()
Read the original announcement →
https://github.com/googleapis/python-genai/releases/tag/v2.9.0-rc0
Related releases
- Vibe-coded schedule app built with Gemini simplifies mornings Gemini Blog ·
- Gemini App Updates: July Drop Gemini Blog ·
- Gemini Spark integrates Chrome for automated web errands Gemini Blog ·
- Gemini Robotics ER 2 Enhances Embodied Reasoning for Robots Gemini Blog ·
- Python GenAI SDK v2.16.0 adds environment resource, Maps tool support Gemini Python SDK Releases ·
- Google Python GenAI SDK Adds Audio Transcription and Enterprise Mode Gemini Python SDK Releases ·