ai@6.0.304
Vercel AI SDK release ai@6.0.304 fixes stream resumption handling in useChat, tool call output mapping, and message part deduplication.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
The ai@6.0.304 patch release introduces several fixes to stream and tool handling across the Vercel AI SDK: - useChat with resume: true now correctly resumes interrupted chat streams upon page visibility without triggering redundant resume requests on mount if the chat is already submitted or actively streaming. - Tool outputs are now updated directly within the message containing the matching tool call. - Replayed streams prevent duplicate message parts when resumed. - Streaming chat messages are updated by stable IDs. - Approved tool calls lacking results are rejected prior to sending subsequent context to providers.
可执行摘要
ai@6.0.304 delivers fixes for chat stream resumption in useChat on page visibility changes, resolves duplicate message parts during replay, updates tool outputs to match corresponding tool call messages, updates streaming messages via stable IDs, and rejects approved tool calls lacking results before passing context to providers.
- Agent 实用度
- 72/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade to ai@6.0.304 if using useChat stream resumption or encountering issues with tool call output placement and duplicate message parts.