Vercel AI SDK 发布 ai@7.0.142 补丁
原标题:ai@7.0.142
AI 摘要
Vercel AI SDK 发布 ai@7.0.142 补丁版本,恢复了面向 OpenAI 自定义工具输入的原始增量数据,供转发至 Responses API 客户端的消费者使用。该版本将流式输入标记为 inputEncoding: 'text',使 UI 客户端无需 JSON 解析即可渐进显示,并在保存和恢复部分 UI 消息时保留该编码,最终 provider 工具调用输入仍保持 JSON 编码。同时更新了 @ai-sdk/provider、@ai-sdk/gateway、@ai-sdk/provider-utils 等依赖。
正文节选
### Patch Changes - 130e871: Restore raw OpenAI custom-tool input deltas for consumers that forward them to Responses API clients. Mark streamed input with `inputEncoding: 'text'` so UI clients can display it progressively without JSON parsing. Preserve the encoding when partial UI messages are saved and resumed. Final provider tool-call inputs remain JSON-encoded. - Updated dependencies [130e871] - Updated dependencies [5bdb816] - @ai-sdk/provider@4.0.28 - @ai-sdk/gateway@4.0.115 - @ai-s