@ai-sdk/amazon-bedrock 5.0.111 → 5.0.112

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 5.0.112
4
+
5
+ ### Patch Changes
6
+
7
+ - c01cbb8: fix(anthropic): avoid unsupported strict mode warnings when tools set `strict: false`
8
+ - Updated dependencies [6c59fb1]
9
+ - Updated dependencies [c01cbb8]
10
+ - @ai-sdk/openai@4.0.90
11
+ - @ai-sdk/anthropic@4.0.77
12
+
3
13
  ## 5.0.111
4
14
 
5
15
  ### Patch Changes
@@ -6,7 +6,7 @@ import { z } from "zod/v4";
6
6
  import { EventStreamCodec } from "@smithy/eventstream-codec";
7
7
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
8
8
  //#region src/version.ts
9
- const VERSION = "5.0.111";
9
+ const VERSION = "5.0.112";
10
10
  //#endregion
11
11
  //#region src/amazon-bedrock-sigv4-fetch.ts
12
12
  /**
package/dist/index.js CHANGED
@@ -375,7 +375,7 @@ async function prepareTools$1({ tools, toolChoice, modelId, modelFamily, reasoni
375
375
  const supportsStrictOnTools = supportsStrictTools(modelId);
376
376
  for (const tool of filteredFunctionTools) {
377
377
  const supportsStrictForTool = supportsStrictOnTools && (tool.strict !== true || isStrictToolSchemaCompatible(tool.inputSchema));
378
- if (!supportsStrictOnTools && tool.strict != null) toolWarnings.push({
378
+ if (!supportsStrictOnTools && tool.strict === true) toolWarnings.push({
379
379
  type: "unsupported",
380
380
  feature: "strict",
381
381
  details: `Tool '${tool.name}' has strict: ${tool.strict}, but strict mode is not supported by this model on Amazon Bedrock. The strict property will be ignored.`
@@ -2343,7 +2343,7 @@ const amazonBedrockImageResponseSchema = z.object({
2343
2343
  });
2344
2344
  //#endregion
2345
2345
  //#region src/version.ts
2346
- const VERSION = "5.0.111";
2346
+ const VERSION = "5.0.112";
2347
2347
  //#endregion
2348
2348
  //#region src/amazon-bedrock-sigv4-fetch.ts
2349
2349
  /**