AI SDK 7.0.58

7.0.58
Added 1
  • Allow `aspectRatio: 'adaptive'` on `generateVideo` for video models that derive output ratio from input.
Changed 1
  • Reduce bundle size by making internal Zod v4 imports tree-shakeable.
Fixed 1
  • Respect ToolLoopAgent timeouts configured in agent settings.
Patch Changes
  • 72ad23f: Respect ToolLoopAgent timeouts configured in agent settings.

  • ad6a650: 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, VideoModelV4CallOptions, and experimental_generateVideo is now `${number}:${number}` | 'adaptive', so those calls no longer need a type assertion. Support is provider-specific.

  • 81cd026: Reduce bundle size by making internal Zod v4 imports tree-shakeable.

  • Updated dependencies [c477556]

  • Updated dependencies [ad6a650]

  • Updated dependencies [81cd026]

    • @ai-sdk/gateway@4.0.46
    • @ai-sdk/provider@4.0.7
    • @ai-sdk/provider-utils@5.0.25
View original

Upgraded? How did it go?

Discussion