返回全部动态

Vercel AI SDK 发布 ai@7.0.143 补丁更新

原标题:ai@7.0.143

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

AI 摘要

Vercel AI SDK 发布 ai@7.0.143 补丁版本,主要修复 useChat() 在预渲染时读取随机值的问题,改为首次访问时生成默认聊天 ID。同时为 streamText 新增 experimental_lowMemory 选项,支持单消费者流式传输且不保留重放缓冲与最终内容结果,以降低内存占用。此外为 TypeSafe AI 增加带图像边界的 box 决策问题类型,并更新了相关依赖包。

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

正文节选

### Patch Changes - 8a5233b: Generate default chat IDs on first access so `useChat()` can prerender without reading a random value when the ID is not used during rendering. - 894e130: fix(ai): add `experimental_lowMemory: true` to `streamText` for single-consumer streaming without a replay buffer or retained final-content results, reducing memory retention. - 0957554: Add `box` decision question type with image bounds for TypeSafe AI. - Updated dependencies [0957554] - @ai-sdk/provider@4.0.29


发布时间:2026-10-17 04:10
抓取时间:2026-10-17 04:16
来源机构:Vercel
阅读原文github.com