ai@7.0.160
Vercel AI SDK 7.0.160 introduces steering.queue() for delayed messaging, fixes a dataPartSchemas validation bug in useChat, and clarifies smoothStream error messaging.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Vercel AI SDK release ai@7.0.160 includes several fixes and additions: (1) Added steering.queue() to send a message once the current task finishes. (2) Fixed an issue where processUIMessageStream queried dataPartSchemas using full chunk types (e.g., data-weather ) instead of the bare name ( weather ), meaning streamed data parts were bypassed in useChat / Chat ; invalid parts will now trigger a TypeValidationError . (3) Clarified the inverted smoothStream prefix error message. (4) Updated dependencies, including @ai-sdk/gateway@4.0.133 .
可执行摘要
Vercel AI SDK release ai@7.0.160 adds steering.queue() to send messages after task completion, fixes streamed data part validation against dataPartSchemas (raising TypeValidationError on failure), and clarifies the inverted smoothStream prefix error message.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Verify client-side handling of TypeValidationError in useChat or Chat components, as invalid streamed data parts will now throw errors instead of passing unvalidated.
- Upgrade to ai@7.0.160 if using steering queues or custom dataPartSchemas .