Vercel has released updates to its AI SDK, including version @ai-sdk/xai@2.0.93 and @ai-sdk/zai@1.0.3. These updates introduce new functionalities for handling image results, improving retry mechanisms, and expanding support for OpenAI models.
Separately, Vercel also updated its @ai-sdk/openai package to versions 2.0.126 and 3.0.111 on September 9.
Key Points
- The @ai-sdk/xai@2.0.93 and @ai-sdk/zai@1.0.3 releases retry unclassified empty image results.
- These updates preserve completed-attempt diagnostics.
- A provider-independent result retryability classification has been added.
- The AI Gateway now preserves retryability classifications.
- Google Vertex RAI-filtered results are marked as terminal.
- @ai-sdk/openai@3.0.111 adds GPT Image 2.5 Flare and Sunburst model IDs.
- @ai-sdk/openai@2.0.126 and 3.0.111 include explicit message item types in Azure AI Foundry Responses requests.
- @ai-sdk/openai@2.0.126 adds async function tool calling support for OpenAI Responses models.
Context
According to Vercel, the updates to @ai-sdk/xai and @ai-sdk/zai focus on enhancing the robustness of image result processing and retry logic within the AI Gateway. The @ai-sdk/openai updates, released on September 9, introduce support for new GPT Image models and improve handling of message types and tool calling for OpenAI integrations, including those with Azure AI Foundry Responses.
Why It Matters
These updates provide developers using the Vercel AI SDK with improved reliability for image-based AI applications and expanded capabilities for integrating with OpenAI models, including specific GPT Image versions and enhanced tool-calling features. The changes also refine how the AI Gateway manages and retries requests, particularly for image results and Google Vertex outputs.
What To Do
- Review the changelog for @ai-sdk/xai@2.0.93 and @ai-sdk/zai@1.0.3 to understand the new retry and diagnostic features.
- Note the addition of GPT Image 2.5 Flare and Sunburst model IDs in @ai-sdk/openai@3.0.111 for relevant projects.
- Check the @ai-sdk/openai@2.0.126 and 3.0.111 updates for changes to Azure AI Foundry Responses requests and async function tool calling.
- Test applications that rely on image processing or OpenAI integrations with the updated SDK versions.
