返回全部动态

Vercel AI SDK 发布 ai@6.0.297 补丁更新

原标题:ai@6.0.297

Vercel AI SDK Releases一手来源API 更新质量 67

AI 摘要

Vercel AI SDK 发布 ai@6.0.297 补丁版本,主要修复流式恢复与工具调用相关问题。更新包括:在流恢复时保留已水合的部分静态工具输入、通过可选 SSE 心跳保持空闲 UI 消息流开启、明确 provider 执行的工具错误绕过 UI 流的 onError 回调、对默认流重连 URL 中的 chat ID 进行编码并拒绝 . 和 .. ID、保留原型命名工具与 provider 元数据为自有属性、以及在特定条件下阻止自动聊天恢复。同时更新了 @ai-sdk/gateway 依赖至 3.0.206。

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

正文节选

### Patch Changes - 8349396: fix(ai): preserve hydrated partial static tool input across stream resumptions - ab0b94b: fix(ai): keep idle UI message streams open with optional SSE heartbeats - ce660b0: Clarify that provider-executed tool execution errors bypass the UI stream's `onError` callback to preserve provider error data. Stream errors and invalid tool calls still use the callback. Runtime behavior is unchanged. - 850d4d5: Encode chat IDs in default stream reconnection URLs so slashes, qu


发布时间:2026-09-30 09:19
抓取时间:2026-09-30 09:47
来源机构:Vercel
阅读原文github.com