Repository navigation
Releases: googleapis/python-genai
Releases · googleapis/python-genai
Release list
v2.31.0
2.31.0 (2026-10-14)
Features
- interactions: Add gemini-4-argon to Model enum (8554b07)
Bug Fixes
- Clear continuation state and preserve prompt feedback when continuation hop returns no candidates (a0d809c)
- Fix the function declaration parser for union types. Fixes #3060 (be32e9e)
- Fix the grounding metadata merging for automatic continuation in generate content and generate content stream (f1499bb)
- Make continuation streams retry dropped hops, stop on prompt_feedback, and keep real errors in generate_content (339a929)
- Match the mTLS endpoint to each transport's SSL context, including plain aiohttp (f8a4693)
v2.30.1
v2.30.0
2.30.0 (2026-10-13)
Features
- Accumulate streaming continuation usage metadata and expose initial_prompt_token_count (b27f3cd)
- Add
continuation_tokento the Interactionsinteraction.status_updateevent. (02db4c5) - Add a CONTINUATION_REQUIRED Interaction status (bf9d6d7)
- Add billable token counts fields (6a6501c)
- Add startOffset/endOffset to Transcription and interimTranscriptTimestampEnabled to RealtimeInputConfig (c644a94)
- Add usage in InteractionStatusUpdate events (56c3a1a)
- Allow automatic resumption of continuation token for in generate content and generate content stream. Default behavior for this feature is disabled (83e43ea)
- cli: Update Speakeasy generator to v2.948.0, bump CLI to v0.4.2, and apply CLI overlay fixes (cdcd3dd)
- Enable automatic continuation token resumption for chats module. (9ebf714)
Bug Fixes
- Clear intermediate CONTINUATION finish_reason in streaming continuation (8a641d8)
- Do not record incomplete continuation stream turns in curated chat history (b382e01)
- gemini-api-cli: Remove unsupported 2.5 and 1.6 models from Interactions model options and CLI examples (fe5fb10)
- genai: Deduplicate Flash and Omni descriptions in ModelOption (33efaad)
- interactions: Restore
super().model_constructinInteractionmodel validator (ccd5dd3) - python: Discard stale checkpoint token on non-resumable finish reason (f44e8ee)
- Raise default HTTP timeouts so long-running requests aren't killed client-side (b006b4b)
- Resume streaming generation from the latest checkpoint continuation token on mid-stream errors or cutoffs (90bb32b)
- Update EnvironmentConfig.env schema to map keys to EnvVar or string. (3108d8c)
- Use the mTLS endpoint on the httpx and websocket transports (97d5821)
v2.29.0
v2.28.0
v2.27.0
v2.26.0
2.26.0 (2026-09-30)
Features
- Add gcs_metrics_uri for exporting tuning job metrics. (b6535e8)
- Add Gemini 3.8 Flash TTS and Gemini 3.8 Flash Lite TTS models to SDKs (0cad6ca)
- genai-sdk: Add environments dedicated module and from_environment support (7672ff6)
- Include labels for LiveClientSetup (4742c9a)
- Support labels for Gemini API GenerateContent (81ffa26)
Bug Fixes
- Build a model before reading its field annotations when pruning extra fields (7845acd)
- cli: Include auto-assigned flag shorthands in
--usageschema (2579b94) - Ensure Vertex AI interactions client uses default timeout=None instead of 5s. (feef230)
- Reap aiohttp sessions and auth locks belonging to closed event loops (6d01288)
- Use
CreateAgentInteractionforTrigger.interactionandTriggerCreateParams.interaction(046ccfb)
Documentation
v2.25.0
2.25.0 (2026-09-22)
Features
- Add sample_audio to Voice in GAOS SDK (a011633)
- Add Voices API resource to GAOS SDK (c45b94e)
- Expose SpeechMetadata, VoiceConfig.voice, and SpeechAnnotation in public GenAI SDKs (a6d3243)
- Support field.value_field syntax for map add_union_value annotations. (ad00721)
- Update discovery doc (fa91716)
- Wire voice into sdk (e1d68b4)
Bug Fixes
- Sanitize path parameter descriptions in GAOS OpenAPI generation (25b0094)
v2.24.0
2.24.0 (2026-09-16)
Features
- Add credential APIs resource to gaos. (d301255)
- Add RetrievalCallStep and RetrievalResultStep to interactions schema and SDKs. (9052efd)
- Implement environments files upload and download across Python and TypeScript SDKs (fc0834d)
- Wire credential APIs resource to sdk. (bf0d457)
Bug Fixes
- Do not run functions once the automatic function calling budget is spent (2580638)