Releases: googleapis/python-genai
Releases · googleapis/python-genai
v2.1.0
2.1.0 (2026-05-12)
Features
- Add gemini-3.1-flash-lite to model options (2d5e0fa)
- Add parameters to video response_format. (4e9d68d)
- Introduce Server Side tools deltas (97d6fe5)
- Support Blocking FunctionCall in Live API in AgentPlatform (Vertex) (955bca6)
- Add support for Vertex-lyria models lyria-3-pro-preview & lyria-3-clip-preview (1bc0536)
Bug Fixes
- Steps is not optional (9ea9633)
v2.0.1
v2.0.0
2.0.0 (2026-05-07)
⚠ BREAKING CHANGES - Interactions Only
Note: The breaking changes are only in interactions. GenerateContent usage in unaffected.
Refer to https://ai.google.dev/gemini-api/docs/interactions-breaking-changes-may-2026 for details
- Add steps for interactions (41d8e5b)
- Rename SSE events to interaction.created and interaction.completed (0549c1c)
- Deprecate legacy response_format and publish new polymorphic field. (7fdc9a1)
Documentation
- Update docs (d3020fd)
v1.75.0
v1.74.0
1.74.0 (2026-04-29)
Features
- [Interactions] Add FileCitation.{custom_metadata,media_id,page_number} (aed41ec)
- Add
output_infotoBatchJob(7b77ab8) - Add gemini-3.1-flash-tts-preview model to options (8bdc1c3)
- Add ImageResizeMode for GenerateVideos (317d2af)
- Add new Gemini Deep Research agent models (16fffbd)
- Add one_of support to JSONSchema for Agent Platform (8c00c52)
- Add Vertex Dataset input and output options for batch jobs (d880f92)
- interaction-api: Add grounding tool usage breakdown to Interaction Usage. (b24fb5a)
- Introduce
enterpriseto Client constructor andGOOGLE_GENAI_USE_ENTERPRISE(693fd9a) - Replace the more ambiguous rate field with sample_rate. (88d9b4a)
Bug Fixes
- Catch google-auth wrapped errors (48ac850)
- Removing Python 3.9 support due to EOL (8bc2b10)
- retry: Retry on httpx.TimeoutException with HttpRetryOptions (#2345) (0598bab)
- Streaming method doesn't handle multi-line SSE (f8a2e7e)
- Typing in
AsyncClient.__aexit__,__exit__. (a74dc65)
Documentation
- Add instruction for custom endpoint (dd79904)
- Fix broken link for rate limits (d22ea99)
- Regenerate docs for 1.73.1 (2fb714b)
- Remove duplicate line in genai client docstring. (b1c6026)
- Replace Vertex AI with Gemini Enterprise Agent Platform (7c1ecd5)
- Update doc string to replace
Vertex AIwithGemini Enterprise Agent Platform, update method error message to replaceVertex AIwithGemini Enterprise Agent Platform (previously known as Vertex AI), update converter error message to replaceVertex AIwithGemini Enterprise Agent Platform(413f0f9) - Update Gemini Enterprise Agent Platform home page url (b02cb95)
- Update README.md with correct Pydantic link (fa97cc6)
- Update README.md with correct Pydantic link (fa97cc6)
v1.73.1
v1.73.0
1.73.0 (2026-04-13)
Caution
CRITICAL WARNING: Do not use this version if you are implementing or relying on webhooks. This release contains known issues regarding webhook sdk. Please use v1.74.0 or later.
Features
- Add DeepResearchAgentConfig fields (ec8ca87)
- Add webhook and webhookConfig for js and python sdk (ccec350)
- Add webhook_config to batches.create() and models.generate_videos() (772d2fc)
- Wire the webhook into python and js client. (841bf22)
Bug Fixes
- Refine Pyink blank line insertion logic and fix range-based formatting regressions. (b91bda5)
Documentation
- Update python docs for 1.72.0 (68ed088)
v1.72.0
1.72.0 (2026-04-09)
Features
- Add "eu" as a supported service location for Vertex AI platform. (888a731)
- Add Live Avatar new fields (ad1777e)
- Add support for new audio MIME types: opus, alaw, and mulaw (74eb373)
- Add the delete method for the Agent Engine Task Store Service (d821082)
Documentation
- Update python docs for 1.71.0 (e82f9fc)