@ai-sdk/anthropic 3.0.0-beta.53 → 3.0.0-beta.55

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/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "3.0.0-beta.53" : "0.0.0-test";
14
+ var VERSION = true ? "3.0.0-beta.55" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -1931,6 +1931,21 @@ var AnthropicMessagesLanguageModel = class {
1931
1931
  setting: "seed"
1932
1932
  });
1933
1933
  }
1934
+ if (temperature != null && temperature > 1) {
1935
+ warnings.push({
1936
+ type: "unsupported-setting",
1937
+ setting: "temperature",
1938
+ details: `${temperature} exceeds anthropic maximum of 1.0. clamped to 1.0`
1939
+ });
1940
+ temperature = 1;
1941
+ } else if (temperature != null && temperature < 0) {
1942
+ warnings.push({
1943
+ type: "unsupported-setting",
1944
+ setting: "temperature",
1945
+ details: `${temperature} is below anthropic minimum of 0. clamped to 0`
1946
+ });
1947
+ temperature = 0;
1948
+ }
1934
1949
  if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
1935
1950
  if (responseFormat.schema == null) {
1936
1951
  warnings.push({