@ai-sdk/anthropic 2.0.44 → 2.0.45

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.
@@ -1788,6 +1788,21 @@ var AnthropicMessagesLanguageModel = class {
1788
1788
  setting: "seed"
1789
1789
  });
1790
1790
  }
1791
+ if (temperature != null && temperature > 1) {
1792
+ warnings.push({
1793
+ type: "unsupported-setting",
1794
+ setting: "temperature",
1795
+ details: `${temperature} exceeds anthropic maximum of 1.0. clamped to 1.0`
1796
+ });
1797
+ temperature = 1;
1798
+ } else if (temperature != null && temperature < 0) {
1799
+ warnings.push({
1800
+ type: "unsupported-setting",
1801
+ setting: "temperature",
1802
+ details: `${temperature} is below anthropic minimum of 0. clamped to 0`
1803
+ });
1804
+ temperature = 0;
1805
+ }
1791
1806
  if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
1792
1807
  if (responseFormat.schema == null) {
1793
1808
  warnings.push({