The Vercel AI SDK has released updates including a new Grok Build harness, according to the Vercel AI SDK Changelog. This harness is built upon an ACP adapter. The update also introduces an 'adaptive' aspect ratio option for video generation and improved handling of ToolLoopAgent timeouts.
Key Points
- The @ai-sdk/harness-grok-build@1.0.0 package adds a Grok Build harness.
- This Grok Build harness is constructed on top of an ACP adapter.
- The AI SDK now allows
aspectRatio: 'adaptive'for video generation. - This
adaptiveoption is available onVideoModelV3CallOptions,VideoModelV4CallOptions, andexperimental_generateVideo. - Some video models, such as BytePlus Seedance 2.5, derive output ratios from input and may reject explicit
width:heightvalues. - ToolLoopAgent timeouts configured in agent settings are now respected.
Context
According to the Vercel AI SDK Changelog, the Grok Build harness is a major change, indicating a significant new capability for developers. The addition of adaptive aspect ratio support addresses a practical challenge with certain video models that do not accept fixed dimensions for tasks like first-frame, first-and-last-frame, editing, and extension. The changelog also notes that ToolLoopAgent timeouts are now respected, improving agent behavior.
Why It Matters
These updates provide developers using the Vercel AI SDK with more flexibility in integrating Grok models and handling video generation, particularly with models that have specific aspect ratio requirements. The improved timeout management for ToolLoopAgent can lead to more robust and predictable agent performance.
What To Do
- Review the @ai-sdk/harness-grok-build@1.0.0 package documentation for details on integrating Grok Build.
- Test the
aspectRatio: 'adaptive'option when working with video models that derive output ratios from input. - Verify ToolLoopAgent timeout configurations in agent settings to ensure desired behavior.
