@ai-sdk/xai 2.0.44 → 2.0.45

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
+ ## 2.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - 9d16e4e: fix (provider/xai): use correct format for function tools
8
+
3
9
  ## 2.0.44
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1376,11 +1376,9 @@ async function prepareResponsesTools({
1376
1376
  } else {
1377
1377
  xaiTools2.push({
1378
1378
  type: "function",
1379
- function: {
1380
- name: tool.name,
1381
- description: tool.description,
1382
- parameters: tool.inputSchema
1383
- }
1379
+ name: tool.name,
1380
+ description: tool.description,
1381
+ parameters: tool.inputSchema
1384
1382
  });
1385
1383
  }
1386
1384
  }
@@ -1997,7 +1995,7 @@ var xaiTools = {
1997
1995
  };
1998
1996
 
1999
1997
  // src/version.ts
2000
- var VERSION = true ? "2.0.44" : "0.0.0-test";
1998
+ var VERSION = true ? "2.0.45" : "0.0.0-test";
2001
1999
 
2002
2000
  // src/xai-provider.ts
2003
2001
  var xaiErrorStructure = {