返回全部动态
Vercel AI SDK 5.0.250 发布:工具调用验证与网络错误重试改进
原标题:ai@5.0.250
AI 摘要
Vercel AI SDK 发布 5.0.250 版本,主要包含两项补丁更新:一是验证持久化类型化工具调用与当前输入输出模式的一致性,不兼容的空输入或错误输入以及不可用工具的历史记录将作为动态工具部分加载;二是将读取成功响应体时出现的瞬时网络错误标记为可重试,包括 AI Gateway 响应。同时更新了 @ai-sdk/gateway 和 @ai-sdk/provider-utils 依赖。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
### Patch Changes - 4e3f54b: Validate persisted typed tool calls against current input and output schemas. Schema-incompatible empty or error inputs and completed or failed history from unavailable tools remain loadable as dynamic tool parts instead of exposing unvalidated values under current static tool types. - 26165ee: Mark transient network errors that occur while reading successful response bodies as retryable, including AI Gateway responses. - Updated dependencies [810dc70] - Updat
发布时间:2026-09-01 03:21
抓取时间:2026-09-01 03:21
来源机构:Vercel