@ai-sdk/amazon-bedrock 4.0.0-beta.59 → 4.0.0-beta.60
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 +8 -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/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -714,6 +714,21 @@ var BedrockChatLanguageModel = class {
|
|
|
714
714
|
setting: "seed"
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
+
if (temperature != null && temperature > 1) {
|
|
718
|
+
warnings.push({
|
|
719
|
+
type: "unsupported-setting",
|
|
720
|
+
setting: "temperature",
|
|
721
|
+
details: `${temperature} exceeds bedrock maximum of 1.0. clamped to 1.0`
|
|
722
|
+
});
|
|
723
|
+
temperature = 1;
|
|
724
|
+
} else if (temperature != null && temperature < 0) {
|
|
725
|
+
warnings.push({
|
|
726
|
+
type: "unsupported-setting",
|
|
727
|
+
setting: "temperature",
|
|
728
|
+
details: `${temperature} is below bedrock minimum of 0. clamped to 0`
|
|
729
|
+
});
|
|
730
|
+
temperature = 0;
|
|
731
|
+
}
|
|
717
732
|
if (responseFormat != null && responseFormat.type !== "text" && responseFormat.type !== "json") {
|
|
718
733
|
warnings.push({
|
|
719
734
|
type: "unsupported-setting",
|
|
@@ -1527,7 +1542,7 @@ import {
|
|
|
1527
1542
|
import { AwsV4Signer } from "aws4fetch";
|
|
1528
1543
|
|
|
1529
1544
|
// src/version.ts
|
|
1530
|
-
var VERSION = true ? "4.0.0-beta.
|
|
1545
|
+
var VERSION = true ? "4.0.0-beta.60" : "0.0.0-test";
|
|
1531
1546
|
|
|
1532
1547
|
// src/bedrock-sigv4-fetch.ts
|
|
1533
1548
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|