开源python-genai Releases·原文 2026年10月29日

Google python-genai发布v2.34.0:新增Python 3.15支持,同时停止支持 3.10

该版本为Gemini Developer API加入视频理解能力,为interactions.create增加automatic_continuation参数,并新增continuation_token、视频放大任务参数等;发布说明由release-please机器人整理。

Google的python-genai仓库发布v2.34.0,版本说明列出一批新增功能与缺陷修复,发布日期标注为 2026 年 10 月 29 日。

最直接的影响落在运行环境:该版本新增对Python 3.15的支持,同时停止支持Python 3.10。

Python版本支持范围调整

发布说明将“Add support for Python 3.15”与“Drop support for Python 3.10”分别列为两项功能变更。这意味着仍在Python 3.10上使用该SDK的项目需要留意升级后的兼容性,而Python 3.15用户可从该版本开始获得支持。

interactions与续传相关参数

与interactions相关的改动包括:在Python SDK的interactions.create中加入automatic_continuation,并在Interaction上声明continuation_ids。

另有一项独立的功能变更新增了对continuation_token和requires_continuation状态的支持。

视频与Gemini Developer API

该版本新增视频放大任务参数,并为Gemini Developer API增加视频理解支持。

LiveConnectConfig.http_options现在支持base_url、api_version和headers,为实时连接配置提供了更多可调项。

修复项

缺陷修复涉及三处:使interactions的SDK User-Agent与x-goog-api-client请求头保持一致;在调用AFC工具时解析PEP 563字符串注解(关联issue #3156);阻止单次请求的Authorization和X-Server-Timeout泄漏进客户端默认请求头(关联issue #3158)。

信息来源