Vercel released updates to its AI SDK on August 24, including @ai-sdk/workflow@2.0.8 and @ai-sdk/xai@3.0.125. The @ai-sdk/workflow@2.0.8 update addresses how the SDK handles invalid tool input during model interactions, while @ai-sdk/xai@3.0.125 focuses on image moderation reporting.
Key Points
- The @ai-sdk/workflow@2.0.8 update was released on August 24 at 18:30.
- This update allows
generateText,streamText, andWorkflowAgentturns to continue with a model-visible tool error when revalidated tool input is invalid. - The @ai-sdk/xai@3.0.125 update was released on August 24 at 18:23.
- The @ai-sdk/xai@3.0.125 update includes a fix to report image moderation blocks as content policy errors.
- The @ai-sdk/workflow@2.0.8 release updated dependencies, including
ai@7.0.78. - The @ai-sdk/xai@3.0.125 release updated dependencies, including
@ai-sdk/provider-utils@4.0.47and@ai-sdk/openai-compatible@2.0.71.
Context
According to Vercel's changelog, the @ai-sdk/workflow@2.0.8 patch ensures that even with invalid revalidated tool input, the system can continue processing approved generateText, streamText, and WorkflowAgent turns by making the tool error visible to the model. The @ai-sdk/xai@3.0.125 patch specifically addresses image moderation, ensuring that blocks are correctly reported as content policy errors.
Why It Matters
These updates from Vercel refine the error handling and moderation capabilities within the AI SDK. The workflow update can help developers build more resilient applications that can better manage and recover from invalid tool inputs, while the xai update improves the accuracy of content policy error reporting for image moderation.
What To Do
- Developers using the Vercel AI SDK should review the changelog for @ai-sdk/workflow@2.0.8 to understand the implications for tool error handling.
- Examine the @ai-sdk/xai@3.0.125 update if your applications involve image moderation and require accurate content policy error reporting.
- Note the updated dependencies, such as
ai@7.0.78for workflow and@ai-sdk/provider-utils@4.0.47and@ai-sdk/openai-compatible@2.0.71for xai, to ensure compatibility in your projects.