@ai-sdk/anthropic 2.0.43 → 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.
@@ -1778,6 +1778,21 @@ var AnthropicMessagesLanguageModel = class {
1778
1778
  setting: "seed"
1779
1779
  });
1780
1780
  }
1781
+ if (temperature != null && temperature > 1) {
1782
+ warnings.push({
1783
+ type: "unsupported-setting",
1784
+ setting: "temperature",
1785
+ details: `${temperature} exceeds anthropic maximum of 1.0. clamped to 1.0`
1786
+ });
1787
+ temperature = 1;
1788
+ } else if (temperature != null && temperature < 0) {
1789
+ warnings.push({
1790
+ type: "unsupported-setting",
1791
+ setting: "temperature",
1792
+ details: `${temperature} is below anthropic minimum of 0. clamped to 0`
1793
+ });
1794
+ temperature = 0;
1795
+ }
1781
1796
  if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
1782
1797
  if (responseFormat.schema == null) {
1783
1798
  warnings.push({