@ai-sdk/anthropic 3.0.0-beta.95 → 3.0.0-beta.97
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 +17 -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.js
CHANGED
|
@@ -1695,6 +1695,9 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
1695
1695
|
case "tool": {
|
|
1696
1696
|
for (let i2 = 0; i2 < content.length; i2++) {
|
|
1697
1697
|
const part = content[i2];
|
|
1698
|
+
if (part.type === "tool-approval-response") {
|
|
1699
|
+
continue;
|
|
1700
|
+
}
|
|
1698
1701
|
const isLastPart = i2 === content.length - 1;
|
|
1699
1702
|
const cacheControl = (_d = validator.getCacheControl(part.providerOptions, {
|
|
1700
1703
|
type: "tool result part",
|