返回全部动态
Vercel AI SDK 发布 ai@7.0.122 补丁更新
原标题:ai@7.0.122
AI 摘要
Vercel AI SDK 发布 ai@7.0.122 补丁版本,主要澄清了由 provider 执行的工具执行错误会绕过 UI 流的 onError 回调,以保留 provider 错误数据和运行时消息,而流错误与无效工具调用仍使用该回调,运行时行为不变。同时修复了默认流重连 URL 中聊天 ID 的编码问题,确保斜杠、查询分隔符和片段保留在 ID 内,并在请求前拒绝独立的 . 和 .. ID。此外更新了 @ai-sdk/gateway 等依赖。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
### Patch Changes - f3575f8: Clarify that provider-executed tool execution errors bypass the UI stream's `onError` callback to preserve provider error data and harness runtime messages. Stream errors and invalid tool calls still use the callback. Runtime behavior is unchanged. - 27ab8d4: Encode chat IDs in default stream reconnection URLs so slashes, query delimiters, and fragments stay within the ID. Reject standalone `.` and `..` IDs before fetching. Custom URLs returned by `prepareReconnectT
发布时间:2026-09-29 05:58
抓取时间:2026-09-29 06:30
来源机构:Vercel