返回全部动态

Vercel AI SDK v6.0.248 发布:视频生成支持自适应宽高比

原标题:ai@6.0.248

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

AI 摘要

Vercel AI SDK 发布 v6.0.248 版本,主要更新为视频生成功能:在 generateVideo 和 VideoModelV3CallOptions 中支持 aspectRatio: 'adaptive',允许视频模型根据输入自动推导输出比例,特别适配 BytePlus Seedance 2.5 模型。该更新避免了显式宽高比时的类型断言,但支持情况因提供商而异。同时更新了相关依赖包。

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

正文节选

### Patch Changes - 2171d15: feat(video): allow `aspectRatio: 'adaptive'` on `generateVideo` Some video models derive the output ratio from the input and reject explicit `{width}:{height}` values — BytePlus Seedance 2.5 does this for first-frame, first-and-last-frame, editing, and extension tasks. `aspectRatio` on `VideoModelV3CallOptions`, and `experimental_generateVideo` is now `` `${number}:${number}` | 'adaptive' ``, so those calls no longer need a type assertion. Support is pr


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