@ai-sdk/xai 3.0.111 → 3.0.113

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.113
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9ecdefe]
8
+ - @ai-sdk/provider-utils@4.0.41
9
+ - @ai-sdk/openai-compatible@2.0.63
10
+
11
+ ## 3.0.112
12
+
13
+ ### Patch Changes
14
+
15
+ - e4f8b5b: Warn when xAI Responses models ignore unsupported sampling settings.
16
+
3
17
  ## 3.0.111
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2150,6 +2150,9 @@ var XaiResponsesLanguageModel = class {
2150
2150
  maxOutputTokens,
2151
2151
  temperature,
2152
2152
  topP,
2153
+ topK,
2154
+ frequencyPenalty,
2155
+ presencePenalty,
2153
2156
  stopSequences,
2154
2157
  seed,
2155
2158
  responseFormat,
@@ -2164,6 +2167,15 @@ var XaiResponsesLanguageModel = class {
2164
2167
  providerOptions,
2165
2168
  schema: xaiLanguageModelResponsesOptions
2166
2169
  })) != null ? _a : {};
2170
+ if (topK != null) {
2171
+ warnings.push({ type: "unsupported", feature: "topK" });
2172
+ }
2173
+ if (frequencyPenalty != null) {
2174
+ warnings.push({ type: "unsupported", feature: "frequencyPenalty" });
2175
+ }
2176
+ if (presencePenalty != null) {
2177
+ warnings.push({ type: "unsupported", feature: "presencePenalty" });
2178
+ }
2167
2179
  if (stopSequences != null) {
2168
2180
  warnings.push({ type: "unsupported", feature: "stopSequences" });
2169
2181
  }
@@ -2921,7 +2933,7 @@ var xaiTools = {
2921
2933
  };
2922
2934
 
2923
2935
  // src/version.ts
2924
- var VERSION = true ? "3.0.111" : "0.0.0-test";
2936
+ var VERSION = true ? "3.0.113" : "0.0.0-test";
2925
2937
 
2926
2938
  // src/xai-video-model.ts
2927
2939
  var import_provider6 = require("@ai-sdk/provider");