@ai-sdk/xai 2.0.92 → 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/dist/index.mjs CHANGED
@@ -747,7 +747,7 @@ var XaiChatLanguageModel = class {
747
747
  delta: delta.reasoning_content
748
748
  });
749
749
  }
750
- if (delta.tool_calls != null) {
750
+ if (delta.tool_calls != null && delta.tool_calls.length > 0) {
751
751
  if (activeReasoningBlockId != null && !contentBlocks[activeReasoningBlockId].ended) {
752
752
  controller.enqueue({
753
753
  type: "reasoning-end",
@@ -2491,7 +2491,7 @@ var xaiTools = {
2491
2491
  };
2492
2492
 
2493
2493
  // src/version.ts
2494
- var VERSION = true ? "2.0.92" : "0.0.0-test";
2494
+ var VERSION = true ? "2.0.94" : "0.0.0-test";
2495
2495
 
2496
2496
  // src/xai-provider.ts
2497
2497
  var xaiErrorStructure = {