@ai-sdk/xai 3.0.130 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/xai",
3
- "version": "3.0.130",
3
+ "version": "3.0.132",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -29,9 +29,9 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@ai-sdk/openai-compatible": "2.0.74",
33
- "@ai-sdk/provider": "3.0.15",
34
- "@ai-sdk/provider-utils": "4.0.50"
32
+ "@ai-sdk/openai-compatible": "2.0.75",
33
+ "@ai-sdk/provider": "3.0.16",
34
+ "@ai-sdk/provider-utils": "4.0.51"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "20.17.24",
@@ -544,7 +544,7 @@ export class XaiChatLanguageModel implements LanguageModelV3 {
544
544
  }
545
545
 
546
546
  // process tool calls
547
- if (delta.tool_calls != null) {
547
+ if (delta.tool_calls != null && delta.tool_calls.length > 0) {
548
548
  // end active reasoning block before tool calls start
549
549
  if (
550
550
  activeReasoningBlockId != null &&