The Vercel AI SDK has updated its @ai-sdk/xai package to version 3.0.127, released on August 26.
Key Points
- The
@ai-sdk/xai@3.0.127package was released on August 26. - It preserves complete xAI Responses usage objects in raw usage metadata.
- It also preserves complete xAI Chat Completions usage objects in generated and streamed results.
- The Vercel AI SDK also added support for the GLM-5.3-Flash model to the Z.AI provider and AI Gateway in other recent updates.
- Complete Amazon Bedrock Converse usage objects are preserved in raw usage metadata, according to the Vercel AI SDK Changelog.
Context
According to the Vercel AI SDK Changelog, these changes ensure that developers using the xAI provider through the Vercel AI SDK have access to comprehensive usage data. This level of detail can be important for cost tracking, performance analysis, and understanding model interactions.
Why It Matters
Builders can now access more granular usage data for xAI models when using the Vercel AI SDK. This can improve the accuracy of cost estimations and provide deeper insights into how xAI models are being utilized within applications.
What To Do
- Developers using
@ai-sdk/xaishould update to version 3.0.127 to access the enhanced usage data. - Review the raw usage metadata and generated/streamed results for xAI interactions to leverage the newly preserved usage objects.
- Compare the usage object details with previous versions to understand the scope of the preserved information.
- Note the expanded support for GLM-5.3-Flash in the Z.AI provider and AI Gateway for potential new integrations.
