返回全部动态

Vercel AI SDK 发布 ai@6.0.286 修复流式处理问题

原标题:ai@6.0.286

Vercel AI SDK Releases一手来源开源质量 65

AI 摘要

Vercel AI SDK 发布 ai@6.0.286 补丁版本,集中修复了流式处理相关的多个问题,包括模拟文本流时保留 provider 元数据、在流式步骤结果中报告 prepareStep 模型、防止 UI 消息流提前停止时出现未处理的 rejection、保留待审批工具调用、在模型调用中止或超时时取消提示附件下载、流式输出 null 和空字符串 JSON 部分结果,以及从最终工具循环步骤流式输出结构化结果。该版本为开发者提供了更稳定的流式与工具调用行为。

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

正文节选

### Patch Changes - 8a9722e: fix(ai): preserve provider metadata when simulating text streams - 6a0f2d9: fix(ai): report the prepareStep model in streamed step results - db02971: fix(ai): prevent unhandled rejections when UI message stream reading stops early - 4d91999: fix(ai): preserve tool calls required by retained pending approvals - b2ad994: fix(ai): cancel prompt attachment downloads when model calls are aborted or time out - 9c85bd4: fix(ai): stream null and empty string JSON partial ou


发布时间:2026-09-18 12:53
抓取时间:2026-09-19 18:03
来源机构:Vercel
阅读原文github.com