@ai-sdk/xai 3.0.6 → 3.0.8

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,20 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d937c8f]
8
+ - @ai-sdk/provider@3.0.2
9
+ - @ai-sdk/openai-compatible@2.0.4
10
+ - @ai-sdk/provider-utils@4.0.4
11
+
12
+ ## 3.0.7
13
+
14
+ ### Patch Changes
15
+
16
+ - 23179aa: fix (provider/xai): use correct format for function tools
17
+
3
18
  ## 3.0.6
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1433,11 +1433,9 @@ async function prepareResponsesTools({
1433
1433
  } else {
1434
1434
  xaiTools2.push({
1435
1435
  type: "function",
1436
- function: {
1437
- name: tool.name,
1438
- description: tool.description,
1439
- parameters: tool.inputSchema
1440
- }
1436
+ name: tool.name,
1437
+ description: tool.description,
1438
+ parameters: tool.inputSchema
1441
1439
  });
1442
1440
  }
1443
1441
  }
@@ -2046,7 +2044,7 @@ var xaiTools = {
2046
2044
  };
2047
2045
 
2048
2046
  // src/version.ts
2049
- var VERSION = true ? "3.0.6" : "0.0.0-test";
2047
+ var VERSION = true ? "3.0.8" : "0.0.0-test";
2050
2048
 
2051
2049
  // src/xai-provider.ts
2052
2050
  var xaiErrorStructure = {