Vercel released version 5.0.0 of its @ai-sdk/xai package on September 15 at 18:30 UTC, according to the Vercel AI SDK Changelog. This update removes the Chat Completions API from the package.
Key Points
- The @ai-sdk/xai package version 5.0.0 was released on September 15.
- This release removes the Chat Completions API from the package.
- The change is identified by the commit
1f20dba. - Previously, version 4.0.59 of @ai-sdk/xai included experimental OpenAI Live provider support.
- Version 3.0.133 of @ai-sdk/xai preserved
additionalProperties: falsein tool schemas.
Context
According to the Vercel AI SDK Changelog, the removal of the Chat Completions API is a major change in the @ai-sdk/xai package. Earlier versions of the SDK, such as @ai-sdk/xai@4.0.59, had introduced experimental OpenAI Live provider support and browser-direct WebRTC capabilities for client-delegated Live conversations. Version @ai-sdk/xai@3.0.133 focused on maintaining specific schema properties for tools.
Why It Matters
Developers using the Vercel AI SDK's @ai-sdk/xai package will need to adjust their implementations due to the removal of the Chat Completions API. This change indicates a shift in the intended functionality or scope of the @ai-sdk/xai package within the broader Vercel AI SDK ecosystem.
What To Do
- Review existing codebases that utilize the @ai-sdk/xai package for dependencies on the Chat Completions API.
- Consult the Vercel AI SDK documentation for alternative methods or updated API structures for chat functionalities.
- Compare the features available in @ai-sdk/xai@5.0.0 with previous versions to understand the full scope of changes.
- Note the September 15 release date for @ai-sdk/xai@5.0.0 when planning updates.
