Google Gen AI Python SDK 发布 v2.32.0
原标题:v2.32.0
AI 摘要
Google 发布 Gen AI Python SDK v2.32.0,新增 PromptedVoice 的 base_voice 参数、GenerateContentConfig 的 generation_output_config 配置,以及 Live API 的会话内上下文更新能力(send_context_update),并同步到各 GenAI SDK。该版本还修复了 Live send_tool_response 内联字节的 Base64 编码、Any 类型字段 JSON 对象解析崩溃等问题,并统一了枚举定义。此次更新主要提升实时 API 的上下文管理能力与 SDK 稳定性。
正文节选
## [2.32.0](https://github.com/googleapis/python-genai/compare/v2.31.0...v2.32.0) (2026-10-21) ### Features * Add base_voice to PromptedVoice in GAOS SDK ([5488643](https://github.com/googleapis/python-genai/commit/548864370ee9c88de0bd839b619dc05bcb7085e7)) * Add generation_output_config to GenerateContentConfig ([5c008e1](https://github.com/googleapis/python-genai/commit/5c008e14b9c9fdecbaf61eb53ad7c09f57fa5f8a)) * Add Live API in-session context updates (`send_context_update`) and types acr