@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/dist/index.mjs
CHANGED
|
@@ -554,14 +554,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
(part) => part.type === "tool_result"
|
|
559
|
-
);
|
|
560
|
-
const otherParts = anthropicContent.filter(
|
|
561
|
-
(part) => part.type !== "tool_result"
|
|
562
|
-
);
|
|
563
|
-
const reorderedContent = toolResultParts.length > 0 ? [...toolResultParts, ...otherParts] : anthropicContent;
|
|
564
|
-
messages.push({ role: "user", content: reorderedContent });
|
|
557
|
+
messages.push({ role: "user", content: anthropicContent });
|
|
565
558
|
break;
|
|
566
559
|
}
|
|
567
560
|
case "assistant": {
|