@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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 4.0.21
4
+
5
+ ### Patch Changes
6
+
7
+ - dc2f851: Warn when xAI Responses models ignore unsupported sampling settings.
8
+
9
+ ## 4.0.20
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [0c464d9]
14
+ - Updated dependencies [c49380c]
15
+ - @ai-sdk/provider-utils@5.0.14
16
+ - @ai-sdk/openai-compatible@3.0.16
17
+
3
18
  ## 4.0.19
4
19
 
5
20
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2310,6 +2310,9 @@ var XaiResponsesLanguageModel = class _XaiResponsesLanguageModel {
2310
2310
  maxOutputTokens,
2311
2311
  temperature,
2312
2312
  topP,
2313
+ topK,
2314
+ frequencyPenalty,
2315
+ presencePenalty,
2313
2316
  stopSequences,
2314
2317
  seed,
2315
2318
  responseFormat,
@@ -2325,6 +2328,15 @@ var XaiResponsesLanguageModel = class _XaiResponsesLanguageModel {
2325
2328
  providerOptions,
2326
2329
  schema: xaiLanguageModelResponsesOptions
2327
2330
  })) != null ? _a : {};
2331
+ if (topK != null) {
2332
+ warnings.push({ type: "unsupported", feature: "topK" });
2333
+ }
2334
+ if (frequencyPenalty != null) {
2335
+ warnings.push({ type: "unsupported", feature: "frequencyPenalty" });
2336
+ }
2337
+ if (presencePenalty != null) {
2338
+ warnings.push({ type: "unsupported", feature: "presencePenalty" });
2339
+ }
2328
2340
  if (stopSequences != null) {
2329
2341
  warnings.push({ type: "unsupported", feature: "stopSequences" });
2330
2342
  }
@@ -3498,7 +3510,7 @@ var xaiTools = {
3498
3510
  };
3499
3511
 
3500
3512
  // src/version.ts
3501
- var VERSION = true ? "4.0.19" : "0.0.0-test";
3513
+ var VERSION = true ? "4.0.21" : "0.0.0-test";
3502
3514
 
3503
3515
  // src/files/xai-files.ts
3504
3516
  import {