@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/dist/index.mjs CHANGED
@@ -801,7 +801,7 @@ var XaiChatLanguageModel = class {
801
801
  delta: delta.reasoning_content
802
802
  });
803
803
  }
804
- if (delta.tool_calls != null) {
804
+ if (delta.tool_calls != null && delta.tool_calls.length > 0) {
805
805
  if (activeReasoningBlockId != null && !contentBlocks[activeReasoningBlockId].ended) {
806
806
  controller.enqueue({
807
807
  type: "reasoning-end",
@@ -3064,7 +3064,7 @@ var xaiTools = {
3064
3064
  };
3065
3065
 
3066
3066
  // src/version.ts
3067
- var VERSION = true ? "3.0.131" : "0.0.0-test";
3067
+ var VERSION = true ? "3.0.132" : "0.0.0-test";
3068
3068
 
3069
3069
  // src/xai-video-model.ts
3070
3070
  import {