@ai-sdk/anthropic 2.0.14 → 2.0.15
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 +1 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -8
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -8
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +1 -8
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -571,14 +571,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
|
|
575
|
-
(part) => part.type === "tool_result"
|
|
576
|
-
);
|
|
577
|
-
const otherParts = anthropicContent.filter(
|
|
578
|
-
(part) => part.type !== "tool_result"
|
|
579
|
-
);
|
|
580
|
-
const reorderedContent = toolResultParts.length > 0 ? [...toolResultParts, ...otherParts] : anthropicContent;
|
|
581
|
-
messages.push({ role: "user", content: reorderedContent });
|
|
574
|
+
messages.push({ role: "user", content: anthropicContent });
|
|
582
575
|
break;
|
|
583
576
|
}
|
|
584
577
|
case "assistant": {
|