@ai-sdk/xai 2.0.82 → 2.0.83

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,11 @@
1
1
  # @ai-sdk/xai
2
2
 
3
+ ## 2.0.83
4
+
5
+ ### Patch Changes
6
+
7
+ - 54beea0: Warn when xAI Responses models ignore unsupported sampling settings.
8
+
3
9
  ## 2.0.82
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1728,6 +1728,9 @@ var XaiResponsesLanguageModel = class {
1728
1728
  maxOutputTokens,
1729
1729
  temperature,
1730
1730
  topP,
1731
+ topK,
1732
+ frequencyPenalty,
1733
+ presencePenalty,
1731
1734
  stopSequences,
1732
1735
  seed,
1733
1736
  responseFormat,
@@ -1742,6 +1745,21 @@ var XaiResponsesLanguageModel = class {
1742
1745
  providerOptions,
1743
1746
  schema: xaiResponsesProviderOptions
1744
1747
  })) != null ? _a : {};
1748
+ if (topK != null) {
1749
+ warnings.push({ type: "unsupported-setting", setting: "topK" });
1750
+ }
1751
+ if (frequencyPenalty != null) {
1752
+ warnings.push({
1753
+ type: "unsupported-setting",
1754
+ setting: "frequencyPenalty"
1755
+ });
1756
+ }
1757
+ if (presencePenalty != null) {
1758
+ warnings.push({
1759
+ type: "unsupported-setting",
1760
+ setting: "presencePenalty"
1761
+ });
1762
+ }
1745
1763
  if (stopSequences != null) {
1746
1764
  warnings.push({
1747
1765
  type: "unsupported-setting",
@@ -2383,7 +2401,7 @@ var xaiTools = {
2383
2401
  };
2384
2402
 
2385
2403
  // src/version.ts
2386
- var VERSION = true ? "2.0.82" : "0.0.0-test";
2404
+ var VERSION = true ? "2.0.83" : "0.0.0-test";
2387
2405
 
2388
2406
  // src/xai-provider.ts
2389
2407
  var xaiErrorStructure = {