Vercel AI SDK Releases @ai-sdk/xai@3.0.132 Patch Update

Vercel AI SDK patches a DeepSeek reasoning stream loss bug triggered by empty tool-call deltas.
`@ai-sdk/xai@3.0.132` is a patch-level maintenance update for the Vercel AI SDK. The core fix addresses an issue in the DeepSeek integration where reasoning streams were incorrectly interrupted when the streaming output encountered empty tool-call deltas. As models with explicit reasoning capabilities like DeepSeek-R1 become more prevalent, preserving reasoning stream integrity is critical for debugging, chain-of-thought display, and multi-step agent orchestration. Following SemVer, this is a backward-compatible fix — developers using tool calling alongside reasoning models should upgrade promptly.
Vercel's AI SDK project has released version @ai-sdk/xai@3.0.132. This is a patch-level update focused on fixing a reasoning stream handling issue in a specific edge case. For developers integrating xAI (Grok series models) or DeepSeek models with this SDK, this is a noteworthy stability improvement worth paying attention to.
What's in This Update
According to the GitHub Release page, this version was published on September 11 via an automated process (github-actions), as part of the continuous iteration on the main branch of the Vercel AI repository. At the time of release, the repository had accumulated over 2,249 commits, with 26.7k stars and 5.1k forks — a testament to its vitality and influence in the open-source community.

This update contains a single Patch Change:
fix(deepseek): preserve reasoning streams across empty tool-call deltas
In plain terms: a fix for the DeepSeek integration where reasoning streams were being lost when encountering empty tool-call deltas. Although the package name references xai, the underlying fix touches DeepSeek-related reasoning stream logic — reflecting the fact that the AI SDK internally shares streaming processing mechanisms across different model providers.
Why This Reasoning Stream Fix Matters
In recent years, models with explicit reasoning capabilities have become increasingly mainstream — think DeepSeek-R1 and xAI's Grok reasoning mode. These models output a "chain of thought" before delivering a final answer, known as a reasoning stream.
During a streaming call, model output is split into incremental fragments called deltas. When a model is also performing tool calls, it may produce "empty tool-call deltas" — chunks that contain neither meaningful tool parameters nor content. If the SDK handles these empty deltas improperly, it can interrupt or lose the ongoing reasoning stream.
This fix specifically addresses that edge case: ensuring that even when an empty tool-call delta is encountered, the reasoning stream is correctly preserved and continues to be passed up to the application layer. For developers who rely on the reasoning chain for debugging, displaying chain-of-thought output, or orchestrating multi-step agents, this fix directly impacts the completeness and reliability of their output.
Background: Tool Calls and Streaming Deltas Tool calling (also known as function calling) refers to the ability of a large language model to proactively request external function or API calls during response generation — enabling it to retrieve real-time data, execute code, or trigger business logic. In streaming protocols, model output is not returned all at once; instead, it is split into multiple chunks pushed sequentially via Server-Sent Events (SSE) or a similar mechanism. Each chunk contains a "delta" field representing the incremental content relative to the previous frame. When a model performs both reasoning and tool calls simultaneously, both types of deltas are interleaved in the same stream, and the SDK must correctly distinguish and maintain separate state machines for each at the parsing layer. An "empty tool-call delta" occurs when a chunk's tool-call field is present but contains no content — a normal boundary condition during frame splitting by the model or backend. However, if the SDK mistakenly interprets this as an "end of tool call" signal, it will prematurely close the reasoning stream's accumulation buffer, causing subsequent chain-of-thought content to be discarded.
Practical Impact for Developers
As a patch version, this update follows Semantic Versioning (SemVer), meaning it only contains backward-compatible bug fixes with no breaking changes. Developers can safely upgrade @ai-sdk/xai to 3.0.132 without worrying about API interface changes.
For users in the following scenarios, upgrading as soon as possible is recommended:
- Using AI SDK to integrate both DeepSeek and tool calling (function calling) functionality
- Displaying or logging the model's reasoning process within your application
- Building agents or automated workflows that depend on streaming reasoning output
As one of the most popular AI application development frameworks in the JavaScript/TypeScript ecosystem, Vercel AI SDK's frequent patch updates reflect the team's commitment to fine-grained stability. These seemingly minor fixes are often exactly what keeps production applications running reliably.
Background: Semantic Versioning (SemVer) Semantic Versioning (SemVer) is a widely adopted version numbering standard in the open-source ecosystem, formatted as
MAJOR.MINOR.PATCH. A PATCH increment indicates only backward-compatible bug fixes; a MINOR increment indicates new features that remain backward-compatible; a MAJOR increment signals breaking changes. The benefit of following SemVer is that developers can assess upgrade risk directly from the version number — patch updates can generally be incorporated into CI/CD auto-upgrade pipelines without reviewing changelogs one by one. Vercel AI SDK explicitly follows this convention, which is one reason it has been widely adopted in enterprise-grade projects.
Summary
@ai-sdk/xai@3.0.132 is a typical maintenance update whose core value lies in fixing a bug where DeepSeek reasoning streams were lost when encountering empty tool-call deltas. While the change is small in scope, for developers relying on reasoning capabilities and tool calling, upgrading delivers a more reliable streaming experience. Users in relevant scenarios are encouraged to update to this version promptly.
Related articles

Vercel AI SDK Releases Vue 3.0.282 Patch Update
Vercel AI SDK releases @ai-sdk/vue@3.0.282 patch update, syncing with core package ai@6.0.282. Learn about the changes, release cadence, and upgrade recommendations.

Vercel AI SDK Sandbox Component Receives Patch Update
Vercel AI SDK releases sandbox-vercel@1.0.109 patch update, syncing the harness dependency to the same version. A look at this maintenance release and what it means for AI app developers.

Vercel AI SDK Vue 4.0.99 Released: Dependency Update Overview
The @ai-sdk/vue 4.0.99 patch release syncs the underlying ai@7.0.99 dependency. Learn what this means for Vue developers building AI apps with Vercel AI SDK.