@ai-sdk/amazon-bedrock 4.0.0-beta.80 → 4.0.0-beta.82
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 +13 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -962,7 +962,7 @@ var BedrockChatLanguageModel = class {
|
|
|
962
962
|
type: "tool-call",
|
|
963
963
|
toolCallId: (_c = (_b = part.toolUse) == null ? void 0 : _b.toolUseId) != null ? _c : this.config.generateId(),
|
|
964
964
|
toolName: (_e = (_d = part.toolUse) == null ? void 0 : _d.name) != null ? _e : `tool-${this.config.generateId()}`,
|
|
965
|
-
input: JSON.stringify((_g = (_f = part.toolUse) == null ? void 0 : _f.input) != null ? _g :
|
|
965
|
+
input: JSON.stringify((_g = (_f = part.toolUse) == null ? void 0 : _f.input) != null ? _g : {})
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
968
|
}
|
|
@@ -1152,7 +1152,7 @@ var BedrockChatLanguageModel = class {
|
|
|
1152
1152
|
type: "tool-call",
|
|
1153
1153
|
toolCallId: contentBlock.toolCallId,
|
|
1154
1154
|
toolName: contentBlock.toolName,
|
|
1155
|
-
input: contentBlock.jsonText
|
|
1155
|
+
input: contentBlock.jsonText === "" ? "{}" : contentBlock.jsonText
|
|
1156
1156
|
});
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
@@ -1578,7 +1578,7 @@ import {
|
|
|
1578
1578
|
import { AwsV4Signer } from "aws4fetch";
|
|
1579
1579
|
|
|
1580
1580
|
// src/version.ts
|
|
1581
|
-
var VERSION = true ? "4.0.0-beta.
|
|
1581
|
+
var VERSION = true ? "4.0.0-beta.82" : "0.0.0-test";
|
|
1582
1582
|
|
|
1583
1583
|
// src/bedrock-sigv4-fetch.ts
|
|
1584
1584
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|