@ai-sdk/xai 3.0.131 → 3.0.132

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
+ ## 3.0.132
4
+
5
+ ### Patch Changes
6
+
7
+ - 4bd2599: fix(deepseek): preserve reasoning streams across empty tool-call deltas
8
+
3
9
  ## 3.0.131
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -815,7 +815,7 @@ var XaiChatLanguageModel = class {
815
815
  delta: delta.reasoning_content
816
816
  });
817
817
  }
818
- if (delta.tool_calls != null) {
818
+ if (delta.tool_calls != null && delta.tool_calls.length > 0) {
819
819
  if (activeReasoningBlockId != null && !contentBlocks[activeReasoningBlockId].ended) {
820
820
  controller.enqueue({
821
821
  type: "reasoning-end",
@@ -3043,7 +3043,7 @@ var xaiTools = {
3043
3043
  };
3044
3044
 
3045
3045
  // src/version.ts
3046
- var VERSION = true ? "3.0.131" : "0.0.0-test";
3046
+ var VERSION = true ? "3.0.132" : "0.0.0-test";
3047
3047
 
3048
3048
  // src/xai-video-model.ts
3049
3049
  var import_provider6 = require("@ai-sdk/provider");