返回全部动态

Vercel AI SDK 更新 Moonshot 提供商,支持视频输入

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

Vercel AI SDK Releases一手来源产品发布质量 76

AI 摘要

Vercel AI SDK 发布了 @ai-sdk/moonshotai@2.0.45 更新,该版本不再基于 @ai-sdk/openai-compatible,而是由包自身实现聊天功能,并支持视频输入,将视频文件转换为 Moonshot 的 video_url 内容部分。同时,音频和 PDF 文件部分现在会在客户端抛出错误,并新增了 promptCacheKey 和 safetyIdentifier 等选项,调整了 reasoningEffort 和 reasoning 映射。

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

正文节选

### Patch Changes - 4d1b345: feat(provider/moonshotai): own the chat implementation, support video input. The provider no longer builds on `@ai-sdk/openai-compatible`; the converter, language model, and helpers are owned by the package. Video file parts (e.g. `mediaType: 'video/mp4'`) are converted to Moonshot's `video_url` content parts for video-capable models (`kimi-k3`, `kimi-k2.7-code`, `kimi-k2.6`, `kimi-k2.5`). Audio and PDF file parts now throw client-side (the API rejects those part ty


发布时间:2026-08-13 11:54
抓取时间:2026-08-13 12:52
来源机构:Vercel
阅读原文github.com