返回全部动态

Google Gen AI JS SDK v2.11.0 发布:新增多项功能与修复

原标题:v2.11.0

Google Gen AI JavaScript SDK Releases一手来源产品发布质量 76

AI 摘要

Google 发布了 Gen AI JavaScript SDK 的 v2.11.0 版本,新增了网络配置中的 environment_id、GenerationConfig 中的 response_format 和 Translation_config、检索结果步骤及地图和搜索结果的新字段、Gemini Enterprise API 的 Tool.exa_ai_search、Agent 创建时的函数声明支持,以及语音同意签名类型。同时修复了 interactions 中 transform 接受 dict 和 list[dict] 的问题,并重构了 interactions,移除了 cached_content、presence_penalty 和 frequency_penalty,暴露了 safety_settings 和 labels。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

## [2.11.0](https://github.com/googleapis/js-genai/compare/v2.10.0...v2.11.0) (2026-07-09) ### Features * Add environment_id in network config ([85fe0a5](https://github.com/googleapis/js-genai/commit/85fe0a5bef70c507ba8641016eca5f10359cbac1)) * Add response_format and Translation_config in GenerationConfig ([3f3b7bc](https://github.com/googleapis/js-genai/commit/3f3b7bc5179d0252470e7a6e87519ff894464a7e)) * add retrieval result step and new fields to maps and search results ([ecfdc69](https://


发布时间:2026-07-10 05:40
抓取时间:2026-08-02 00:03
来源机构:Google
阅读原文github.com