返回全部动态

Vercel AI SDK 7.0.129 新增 max 推理等级并修复多项问题

原标题:ai@7.0.129

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

AI 摘要

Vercel AI SDK 发布 ai@7.0.129 补丁版本,主要新增可移植的 `max` 推理等级并映射到各原生提供商,同时引入带稳定代码的去重弃用警告。该版本还修复了 V2 提供商上报 token 保留、流恢复错误发布、工具消息选项保留、WebKit 网络错误识别等问题,并升级到 TypeScript 6。由于 `max` 扩展了 ReasoningLevel 类型,使用穷举 switch 的第三方提供商需在升级前适配。

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

正文节选

### Patch Changes - e37d213: feat(ai): emit deprecation warnings with stable codes and deduplicate them - 73d8343: fix(ai): preserve V2 provider-reported total tokens in raw usage - 268225c: feat(provider): add a portable `max` reasoning level with native provider mappings, compatibility coercions, and budget-based fallback support. Compatibility notes: - **TypeScript source compatibility:** Adding `max` widens `LanguageModelV4CallOptions['reasoning']` and the derived `ReasoningLevel` typ


发布时间:2026-10-07 06:21
抓取时间:2026-10-07 06:33
来源机构:Vercel
阅读原文github.com