@ai-sdk/amazon-bedrock 4.0.0-beta.58 → 4.0.0-beta.59
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
|
@@ -176,6 +176,7 @@ async function prepareTools({
|
|
|
176
176
|
toolChoice,
|
|
177
177
|
modelId
|
|
178
178
|
}) {
|
|
179
|
+
var _a;
|
|
179
180
|
const toolWarnings = [];
|
|
180
181
|
const betas = /* @__PURE__ */ new Set();
|
|
181
182
|
if (tools == null || tools.length === 0) {
|
|
@@ -264,7 +265,7 @@ async function prepareTools({
|
|
|
264
265
|
bedrockTools.push({
|
|
265
266
|
toolSpec: {
|
|
266
267
|
name: tool.name,
|
|
267
|
-
description: tool.description,
|
|
268
|
+
...((_a = tool.description) == null ? void 0 : _a.trim()) !== "" ? { description: tool.description } : {},
|
|
268
269
|
inputSchema: {
|
|
269
270
|
json: tool.inputSchema
|
|
270
271
|
}
|
|
@@ -1526,7 +1527,7 @@ import {
|
|
|
1526
1527
|
import { AwsV4Signer } from "aws4fetch";
|
|
1527
1528
|
|
|
1528
1529
|
// src/version.ts
|
|
1529
|
-
var VERSION = true ? "4.0.0-beta.
|
|
1530
|
+
var VERSION = true ? "4.0.0-beta.59" : "0.0.0-test";
|
|
1530
1531
|
|
|
1531
1532
|
// src/bedrock-sigv4-fetch.ts
|
|
1532
1533
|
function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
|