@ai-sdk/amazon-bedrock 3.0.54 → 3.0.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 +6 -0
- 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 +3 -3
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.55" : "0.0.0-test";
|
|
12
12
|
|
|
13
13
|
// src/bedrock-provider.ts
|
|
14
14
|
import { anthropicTools as anthropicTools2 } from "@ai-sdk/anthropic/internal";
|
|
@@ -181,6 +181,7 @@ async function prepareTools({
|
|
|
181
181
|
toolChoice,
|
|
182
182
|
modelId
|
|
183
183
|
}) {
|
|
184
|
+
var _a;
|
|
184
185
|
const toolWarnings = [];
|
|
185
186
|
const betas = /* @__PURE__ */ new Set();
|
|
186
187
|
if (tools == null || tools.length === 0) {
|
|
@@ -269,7 +270,7 @@ async function prepareTools({
|
|
|
269
270
|
bedrockTools.push({
|
|
270
271
|
toolSpec: {
|
|
271
272
|
name: tool.name,
|
|
272
|
-
description: tool.description,
|
|
273
|
+
...((_a = tool.description) == null ? void 0 : _a.trim()) !== "" ? { description: tool.description } : {},
|
|
273
274
|
inputSchema: {
|
|
274
275
|
json: tool.inputSchema
|
|
275
276
|
}
|