Vercel's AI SDK has received several updates across its packages, as detailed in recent changelog entries. These updates address specific functionalities within the Anthropic, XAI, and Workflow components of the SDK.
Key Points
- The Anthropic package,
@ai-sdk/anthropic@3.0.111, now preserves server-tool caller metadata in multi-turn conversations. - The
@ai-sdk/xai@4.0.39package reports video moderation blocks and missing URLs as an error status instead of throwing an error. - The
@ai-sdk/xai@3.0.121package added support for Grok Imagine Video 1.5, including native 1080p resolution for text-to-video and image-to-video. - Grok Imagine Video 1.5 reference-to-video remains capped at 720p, with 1080p requests downgraded and a warning issued.
- The
@ai-sdk/xai@3.0.121update also introducedreferenceVoiceIdsfor reference-to-video reference audio, allowing up to three xAI preset voice IDs. - The
@ai-sdk/workflow@1.0.67package includes a fix for WorkflowAgent timeout handling, enforcing absolute deadlines and routing timeouts through abort handling.
Context
According to the Vercel AI SDK changelog, the update to @ai-sdk/anthropic@3.0.111 specifically addresses the preservation of server-tool caller metadata. The @ai-sdk/xai package received two distinct updates. Version @ai-sdk/xai@3.0.121 introduced new features for Grok Imagine Video 1.5, while @ai-sdk/xai@4.0.39 focused on error reporting for video moderation. The @ai-sdk/workflow@1.0.67 update, also from the Vercel AI SDK changelog, targets timeout management within the WorkflowAgent.
Why It Matters
These updates refine the Vercel AI SDK's interaction with various models and services, potentially improving reliability and developer experience. The changes to Anthropic metadata handling and XAI error reporting can lead to more robust applications, while the Grok Imagine Video 1.5 integration expands multimodal capabilities for developers using the SDK.
What To Do
- Developers using the Anthropic package should note the improved handling of server-tool caller metadata in multi-turn conversations.
- Review the updated error handling for video moderation blocks and missing URLs in the
@ai-sdk/xai@4.0.39package. - Explore the new Grok Imagine Video 1.5 capabilities, including 1080p text-to-video and image-to-video, and the
referenceVoiceIdsfeature, in@ai-sdk/xai@3.0.121. - Test applications utilizing the WorkflowAgent to confirm the fix for timeout handling in
@ai-sdk/workflow@1.0.67.
