Vercel AI SDK 发布 ai@7.0.146 补丁版本
原标题:ai@7.0.146
AI 摘要
Vercel AI SDK 发布 ai@7.0.146 补丁版本,为实验性 decision 调用新增 maxOutputTokens 和 reasoning 参数,并将其转发给由语言模型驱动的决策;语言模型适配器在未指定时保持 reasoning 关闭,原生 decision 提供方在遇到不支持的设置时会发出警告。该版本还修复了裁剪工具调用时残留孤立 reasoning 内容、以及可选工具在工具调用等类型中错误添加 undefined 成员的问题,并更新了 gateway、provider 等依赖。
正文节选
### Patch Changes - 0c2a9de: Add `maxOutputTokens` and `reasoning` to experimental decision calls and forward them to language-model-backed decisions. Language-model adapters keep reasoning disabled when omitted. Native decision providers warn when either setting is unsupported. - 3785b2e: fix(ai): remove orphaned reasoning, including consecutive summary and reasoning-file parts, when pruning tool calls - ab8eb61: Fix optional tools adding an incorrect `undefined` member to tool call, result, e