@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.js
CHANGED
|
@@ -1905,6 +1905,21 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
1905
1905
|
setting: "seed"
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
|
+
if (temperature != null && temperature > 1) {
|
|
1909
|
+
warnings.push({
|
|
1910
|
+
type: "unsupported-setting",
|
|
1911
|
+
setting: "temperature",
|
|
1912
|
+
details: `${temperature} exceeds anthropic maximum of 1.0. clamped to 1.0`
|
|
1913
|
+
});
|
|
1914
|
+
temperature = 1;
|
|
1915
|
+
} else if (temperature != null && temperature < 0) {
|
|
1916
|
+
warnings.push({
|
|
1917
|
+
type: "unsupported-setting",
|
|
1918
|
+
setting: "temperature",
|
|
1919
|
+
details: `${temperature} is below anthropic minimum of 0. clamped to 0`
|
|
1920
|
+
});
|
|
1921
|
+
temperature = 0;
|
|
1922
|
+
}
|
|
1908
1923
|
if ((responseFormat == null ? void 0 : responseFormat.type) === "json") {
|
|
1909
1924
|
if (responseFormat.schema == null) {
|
|
1910
1925
|
warnings.push({
|