返回全部动态

Vercel AI SDK 更新 Moonshot 集成,优化工具模式验证

原标题:@ai-sdk/moonshotai@3.0.35

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

AI 摘要

Vercel AI SDK 发布了 @ai-sdk/moonshotai@3.0.35 版本,该版本针对 Moonshot 的 MFJS 验证器进行了工具模式规范化。具体改进包括:将元组 items 数组转换为 prefixItems,将 anyOf 旁边的 type 移入分支,并对非 object 根模式给出清晰的客户端错误提示。这些改动不影响其他部分,原始模式仍用于 AI SDK 结果验证。

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

正文节选

### Patch Changes - 9435df8: feat(provider/moonshotai): normalize tool schemas for Moonshot's MFJS validator. Tuple `items` arrays become `prefixItems`, `type` next to `anyOf` moves into the branches, and non-`object` root schemas fail with a clear client-side error instead of Moonshot's opaque 400. Everything else passes through unchanged; the original schema is still used for AI SDK result validation.


发布时间:2026-08-16 02:54
抓取时间:2026-08-16 03:53
来源机构:Vercel
阅读原文github.com