ai@7.0.106
Vercel AI SDK 7.0.106 brings multiple bug fixes targeting stream handling, tool call serialization, cancellation behavior, and metadata tracking.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
Version 7.0.106 of ai delivers a collection of patch fixes across streaming and agent tool lifecycles. Key fixes include: preserving provider metadata during simulated text streams; reporting the prepareStep model in streamed step results and using it for metadata fallbacks; preventing unhandled rejections on premature UI message stream termination; preserving prototype-named properties in tool outputs; retaining tool calls tied to pending approvals; properly closing telemetry spans when streams fail; canceling prompt attachment downloads upon call aborts or timeouts; and streaming structured output from final tool-loop steps alongside null and empty string JSON partials. It also updates dependencies on @ai-sdk/gateway and @ai-sdk/provider-utils.
可执行摘要
Vercel AI SDK patch release ai@7.0.106 resolves issues in multi-step and simulated text streaming, early stream abort/rejection handling, tool execution lifecycle (including approval retention and invalid tool call callbacks), JSON fence stripping, and telemetry span closing.
- Agent 实用度
- 82/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade ai to version 7.0.106 via npm or yarn if experiencing streaming abort errors, missing telemetry span closures, or issues with tool call metadata during multi-step runs.