@ai-sdk/amazon-bedrock 4.0.63 → 4.0.65
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/anthropic/index.js +1 -1
- package/dist/anthropic/index.mjs +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/bedrock-prepare-tools.ts +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/amazon-bedrock
|
|
2
2
|
|
|
3
|
+
## 4.0.65
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a1a8091: fix(bedrock): ensure tool choice option is enforced
|
|
8
|
+
|
|
9
|
+
## 4.0.64
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [17978c6]
|
|
14
|
+
- @ai-sdk/anthropic@3.0.47
|
|
15
|
+
|
|
3
16
|
## 4.0.63
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/anthropic/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
|
|
|
35
35
|
var import_aws4fetch = require("aws4fetch");
|
|
36
36
|
|
|
37
37
|
// src/version.ts
|
|
38
|
-
var VERSION = true ? "4.0.
|
|
38
|
+
var VERSION = true ? "4.0.65" : "0.0.0-test";
|
|
39
39
|
|
|
40
40
|
// src/bedrock-sigv4-fetch.ts
|
|
41
41
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|
package/dist/anthropic/index.mjs
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import { AwsV4Signer } from "aws4fetch";
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var VERSION = true ? "4.0.
|
|
27
|
+
var VERSION = true ? "4.0.65" : "0.0.0-test";
|
|
28
28
|
|
|
29
29
|
// src/bedrock-sigv4-fetch.ts
|
|
30
30
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|
package/dist/index.js
CHANGED
|
@@ -279,7 +279,8 @@ async function prepareTools({
|
|
|
279
279
|
toolWarnings.push({ type: "unsupported", feature: `tool ${tool.id}` });
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
const filteredFunctionTools = (toolChoice == null ? void 0 : toolChoice.type) === "tool" ? functionTools.filter((t) => t.name === toolChoice.toolName) : functionTools;
|
|
283
|
+
for (const tool of filteredFunctionTools) {
|
|
283
284
|
bedrockTools.push({
|
|
284
285
|
toolSpec: {
|
|
285
286
|
name: tool.name,
|
|
@@ -1932,7 +1933,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
|
|
|
1932
1933
|
var import_aws4fetch = require("aws4fetch");
|
|
1933
1934
|
|
|
1934
1935
|
// src/version.ts
|
|
1935
|
-
var VERSION = true ? "4.0.
|
|
1936
|
+
var VERSION = true ? "4.0.65" : "0.0.0-test";
|
|
1936
1937
|
|
|
1937
1938
|
// src/bedrock-sigv4-fetch.ts
|
|
1938
1939
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|