@ai-sdk/xai 3.0.64 → 3.0.66

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,19 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 3.0.66
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [824b295]
8
+ - @ai-sdk/provider-utils@4.0.18
9
+ - @ai-sdk/openai-compatible@2.0.34
10
+
11
+ ## 3.0.65
12
+
13
+ ### Patch Changes
14
+
15
+ - d5801fe: fix(xai): ensure strict mode for tools
16
+
3
17
  ## 3.0.64
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -333,7 +333,8 @@ function prepareTools({
333
333
  function: {
334
334
  name: tool.name,
335
335
  description: tool.description,
336
- parameters: tool.inputSchema
336
+ parameters: tool.inputSchema,
337
+ ...tool.strict != null ? { strict: tool.strict } : {}
337
338
  }
338
339
  });
339
340
  }
@@ -1901,7 +1902,8 @@ async function prepareResponsesTools({
1901
1902
  type: "function",
1902
1903
  name: tool.name,
1903
1904
  description: tool.description,
1904
- parameters: tool.inputSchema
1905
+ parameters: tool.inputSchema,
1906
+ ...tool.strict != null ? { strict: tool.strict } : {}
1905
1907
  });
1906
1908
  }
1907
1909
  }
@@ -2704,7 +2706,7 @@ var xaiTools = {
2704
2706
  };
2705
2707
 
2706
2708
  // src/version.ts
2707
- var VERSION = true ? "3.0.64" : "0.0.0-test";
2709
+ var VERSION = true ? "3.0.66" : "0.0.0-test";
2708
2710
 
2709
2711
  // src/xai-video-model.ts
2710
2712
  var import_provider6 = require("@ai-sdk/provider");