@ai-sdk/anthropic 3.0.0-beta.95 → 3.0.0-beta.96
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 +9 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +3 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -0
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/internal/index.mjs
CHANGED
|
@@ -1711,6 +1711,9 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
1711
1711
|
case "tool": {
|
|
1712
1712
|
for (let i2 = 0; i2 < content.length; i2++) {
|
|
1713
1713
|
const part = content[i2];
|
|
1714
|
+
if (part.type === "tool-approval-response") {
|
|
1715
|
+
continue;
|
|
1716
|
+
}
|
|
1714
1717
|
const isLastPart = i2 === content.length - 1;
|
|
1715
1718
|
const cacheControl = (_d = validator.getCacheControl(part.providerOptions, {
|
|
1716
1719
|
type: "tool result part",
|