@ai-sdk/xai 2.0.93 → 2.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.94
4
+
5
+ ### Patch Changes
6
+
7
+ - 2c72feb: fix(deepseek): preserve reasoning streams across empty tool-call deltas
8
+
3
9
  ## 2.0.93
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -758,7 +758,7 @@ var XaiChatLanguageModel = class {
758
758
  delta: delta.reasoning_content
759
759
  });
760
760
  }
761
- if (delta.tool_calls != null) {
761
+ if (delta.tool_calls != null && delta.tool_calls.length > 0) {
762
762
  if (activeReasoningBlockId != null && !contentBlocks[activeReasoningBlockId].ended) {
763
763
  controller.enqueue({
764
764
  type: "reasoning-end",
@@ -2484,7 +2484,7 @@ var xaiTools = {
2484
2484
  };
2485
2485
 
2486
2486
  // src/version.ts
2487
- var VERSION = true ? "2.0.93" : "0.0.0-test";
2487
+ var VERSION = true ? "2.0.94" : "0.0.0-test";
2488
2488
 
2489
2489
  // src/xai-provider.ts
2490
2490
  var xaiErrorStructure = {