Google Gen AI JavaScript SDK 发布 v3.1.0
原标题:v3.1.0
AI 摘要
Google 发布 Gen AI JavaScript SDK v3.1.0,新增 gemini-omni-1.2-flash 并将其设为 gemini-api video 的默认模型,同时在 Model 枚举中加入 gemini-4-carbon。该版本还为 Live API 的 ProactivityConfig 增加 proactive_video 选项,为 Interactions 的 ThinkingLevel 增加 xhigh 思考等级,并为 Gemini Enterprise API 的 EmbedContentResponse 补充 usage_metadata(含 traffic_type)与 truncated 字段。
正文节选
## [3.1.0](https://github.com/googleapis/js-genai/compare/v3.0.0...v3.1.0) (2026-11-10) ### Features * add `gemini-omni-1.2-flash` and make it the `gemini-api video` default ([cd31e9f](https://github.com/googleapis/js-genai/commit/cd31e9f9ea3aac359be9666a37180b5a908b8293)) * Add `proactive_video` to `ProactivityConfig` for the Live API. ([2164fe7](https://github.com/googleapis/js-genai/commit/2164fe72de77aea191c1e43e7d8f346426752c0d)) * add `xhigh` thinking level to Interactions ThinkingLevel