返回全部动态

Vercel AI SDK 发布 ai@7.0.138 修复流恢复与引用支持

原标题:ai@7.0.138

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

AI 摘要

Vercel AI SDK 发布 ai@7.0.138 补丁版本,主要修复聊天流恢复、工具调用输出更新、消息重复、类型冲突等问题。其中 useChat 在 resume: true 时不再于已提交或流式传输中重复发起恢复请求,并新增可选的共享引用表示以支持生成文本中的引用保留。该版本还更新了 @ai-sdk/provider-utils、@ai-sdk/provider 和 @ai-sdk/gateway 等依赖。

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

正文节选

### Patch Changes - eab278a: fix: resume interrupted chat streams when the page becomes visible again `useChat` with `resume: true` no longer starts a second resume request on mount when the chat is already submitted or streaming, e.g. when remounting with a shared `Chat` instance mid-stream. - 26d64e9: fix(ai): update tool outputs in the message containing the matching tool call - 75b3ea2: fix(ai): prevent duplicate message parts when resuming replayed streams - 69f4b82: fix(ai): prevent g


发布时间:2026-10-13 01:47
抓取时间:2026-10-13 02:26
来源机构:Vercel
阅读原文github.com