@ai-sdk/xai 2.0.39 → 2.0.41

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
+ ## 2.0.41
4
+
5
+ ### Patch Changes
6
+
7
+ - f4a85f7: fix(xai): use correct parameter names for maxOutputTokens
8
+
9
+ ## 2.0.40
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [ef6d784]
14
+ - @ai-sdk/provider-utils@3.0.19
15
+ - @ai-sdk/openai-compatible@1.0.29
16
+
3
17
  ## 2.0.39
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -402,7 +402,7 @@ var XaiChatLanguageModel = class {
402
402
  // model id
403
403
  model: this.modelId,
404
404
  // standard generation settings
405
- max_tokens: maxOutputTokens,
405
+ max_completion_tokens: maxOutputTokens,
406
406
  temperature,
407
407
  top_p: topP,
408
408
  seed,
@@ -1527,7 +1527,7 @@ var XaiResponsesLanguageModel = class {
1527
1527
  const baseArgs = {
1528
1528
  model: this.modelId,
1529
1529
  input,
1530
- max_tokens: maxOutputTokens,
1530
+ max_output_tokens: maxOutputTokens,
1531
1531
  temperature,
1532
1532
  top_p: topP,
1533
1533
  seed,
@@ -1992,7 +1992,7 @@ var xaiTools = {
1992
1992
  };
1993
1993
 
1994
1994
  // src/version.ts
1995
- var VERSION = true ? "2.0.39" : "0.0.0-test";
1995
+ var VERSION = true ? "2.0.41" : "0.0.0-test";
1996
1996
 
1997
1997
  // src/xai-provider.ts
1998
1998
  var xaiErrorStructure = {