@ai-sdk/anthropic 4.0.76 → 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 +6 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/package.json +1 -1
- package/src/anthropic-prepare-tools.ts +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -1489,7 +1489,7 @@ async function prepareTools({ tools, toolChoice, disableParallelToolUse, cacheCo
|
|
|
1489
1489
|
const eagerInputStreaming = anthropicOptions?.eagerInputStreaming ?? defaultEagerInputStreaming;
|
|
1490
1490
|
const deferLoading = anthropicOptions?.deferLoading;
|
|
1491
1491
|
const allowedCallers = anthropicOptions?.allowedCallers;
|
|
1492
|
-
if (!supportsStrictTools && tool.strict
|
|
1492
|
+
if (!supportsStrictTools && tool.strict === true) toolWarnings.push({
|
|
1493
1493
|
type: "unsupported",
|
|
1494
1494
|
feature: "strict",
|
|
1495
1495
|
details: `Tool '${tool.name}' has strict: ${tool.strict}, but strict mode is not supported by this provider. The strict property will be ignored.`
|