@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/CHANGELOG.md +14 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +15 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +15 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -1916,6 +1916,21 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
1916
1916
|
setting: "seed"
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
|
+
if (temperature != null && temperature > 1) {
|
|
1920
|
+
warnings.push({
|
|
1921
|
+
type: "unsupported-setting",
|
|
1922
|
+
setting: "temperature",
|
|
1923
|
+
details: `${temperature} exceeds anthropic maximum of 1.0. clamped to 1.0`
|
|
1924
|
+
});
|
|
1925
|
+
temperature = 1;
|
|
1926
|
+
} else if (temperature != null && temperature < 0) {
|
|
1927
|
+
warnings.push({
|
|
1928
|
+
type: "unsupported-setting",
|
|
1929
|
+
setting: "temperature",
|
|
1930
|
+
details: `${temperature} is below anthropic minimum of 0. clamped to 0`
|
|
1931
|
+
});
|
|
1932
|
+
temperature = 0;
|
|
1933
|
+
}
|
|
1919
1934
|
if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
|
|
1920
1935
|
if (responseFormat.schema == null) {
|
|
1921
1936
|
warnings.push({
|