@ai-sdk/xai 4.0.19 → 4.0.21

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": "4.0.19",
3
+ "version": "4.0.21",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -29,9 +29,9 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@ai-sdk/openai-compatible": "3.0.15",
33
32
  "@ai-sdk/provider": "4.0.4",
34
- "@ai-sdk/provider-utils": "5.0.13"
33
+ "@ai-sdk/provider-utils": "5.0.14",
34
+ "@ai-sdk/openai-compatible": "3.0.16"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "22.19.19",
@@ -93,6 +93,9 @@ export class XaiResponsesLanguageModel implements LanguageModelV4 {
93
93
  maxOutputTokens,
94
94
  temperature,
95
95
  topP,
96
+ topK,
97
+ frequencyPenalty,
98
+ presencePenalty,
96
99
  stopSequences,
97
100
  seed,
98
101
  responseFormat,
@@ -110,6 +113,18 @@ export class XaiResponsesLanguageModel implements LanguageModelV4 {
110
113
  schema: xaiLanguageModelResponsesOptions,
111
114
  })) ?? {};
112
115
 
116
+ if (topK != null) {
117
+ warnings.push({ type: 'unsupported', feature: 'topK' });
118
+ }
119
+
120
+ if (frequencyPenalty != null) {
121
+ warnings.push({ type: 'unsupported', feature: 'frequencyPenalty' });
122
+ }
123
+
124
+ if (presencePenalty != null) {
125
+ warnings.push({ type: 'unsupported', feature: 'presencePenalty' });
126
+ }
127
+
113
128
  if (stopSequences != null) {
114
129
  warnings.push({ type: 'unsupported', feature: 'stopSequences' });
115
130
  }