@ai-sdk/amazon-bedrock 3.0.66 → 3.0.68
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 +6 -6
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "@ai-sdk/provider-utils";
|
|
9
9
|
|
|
10
10
|
// src/version.ts
|
|
11
|
-
var VERSION = true ? "3.0.
|
|
11
|
+
var VERSION = true ? "3.0.68" : "0.0.0-test";
|
|
12
12
|
|
|
13
13
|
// src/bedrock-provider.ts
|
|
14
14
|
import { anthropicTools as anthropicTools2 } from "@ai-sdk/anthropic/internal";
|
|
@@ -958,7 +958,7 @@ var BedrockChatLanguageModel = class {
|
|
|
958
958
|
type: "tool-call",
|
|
959
959
|
toolCallId: (_c = (_b = part.toolUse) == null ? void 0 : _b.toolUseId) != null ? _c : this.config.generateId(),
|
|
960
960
|
toolName: (_e = (_d = part.toolUse) == null ? void 0 : _d.name) != null ? _e : `tool-${this.config.generateId()}`,
|
|
961
|
-
input: JSON.stringify((_g = (_f = part.toolUse) == null ? void 0 : _f.input) != null ? _g :
|
|
961
|
+
input: JSON.stringify((_g = (_f = part.toolUse) == null ? void 0 : _f.input) != null ? _g : {})
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
964
|
}
|
|
@@ -1148,7 +1148,7 @@ var BedrockChatLanguageModel = class {
|
|
|
1148
1148
|
type: "tool-call",
|
|
1149
1149
|
toolCallId: contentBlock.toolCallId,
|
|
1150
1150
|
toolName: contentBlock.toolName,
|
|
1151
|
-
input: contentBlock.jsonText
|
|
1151
|
+
input: contentBlock.jsonText === "" ? "{}" : contentBlock.jsonText
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|