@ai-sdk/anthropic 4.0.75 → 4.0.77

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,19 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 4.0.77
4
+
5
+ ### Patch Changes
6
+
7
+ - c01cbb8: fix(anthropic): avoid unsupported strict mode warnings when tools set `strict: false`
8
+
9
+ ## 4.0.76
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [9184a35]
14
+ - @ai-sdk/provider@4.0.25
15
+ - @ai-sdk/provider-utils@5.0.57
16
+
3
17
  ## 4.0.75
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1490,7 +1490,7 @@ async function prepareTools({ tools, toolChoice, disableParallelToolUse, cacheCo
1490
1490
  const eagerInputStreaming = anthropicOptions?.eagerInputStreaming ?? defaultEagerInputStreaming;
1491
1491
  const deferLoading = anthropicOptions?.deferLoading;
1492
1492
  const allowedCallers = anthropicOptions?.allowedCallers;
1493
- if (!supportsStrictTools && tool.strict != null) toolWarnings.push({
1493
+ if (!supportsStrictTools && tool.strict === true) toolWarnings.push({
1494
1494
  type: "unsupported",
1495
1495
  feature: "strict",
1496
1496
  details: `Tool '${tool.name}' has strict: ${tool.strict}, but strict mode is not supported by this provider. The strict property will be ignored.`
@@ -6869,7 +6869,7 @@ var AnthropicSkills = class {
6869
6869
  };
6870
6870
  //#endregion
6871
6871
  //#region src/version.ts
6872
- const VERSION = "4.0.75";
6872
+ const VERSION = "4.0.77";
6873
6873
  //#endregion
6874
6874
  //#region src/anthropic-provider.ts
6875
6875
  const ANTHROPIC_API_URL = "https://api.anthropic.com";