@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/internal/index.mjs
CHANGED
|
@@ -544,14 +544,7 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
544
544
|
}
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
|
|
548
|
-
(part) => part.type === "tool_result"
|
|
549
|
-
);
|
|
550
|
-
const otherParts = anthropicContent.filter(
|
|
551
|
-
(part) => part.type !== "tool_result"
|
|
552
|
-
);
|
|
553
|
-
const reorderedContent = toolResultParts.length > 0 ? [...toolResultParts, ...otherParts] : anthropicContent;
|
|
554
|
-
messages.push({ role: "user", content: reorderedContent });
|
|
547
|
+
messages.push({ role: "user", content: anthropicContent });
|
|
555
548
|
break;
|
|
556
549
|
}
|
|
557
550
|
case "assistant": {
|