@ai-sdk/anthropic 2.0.14 → 2.0.16
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 +13 -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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 2.0.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [0294b58]
|
|
8
|
+
- @ai-sdk/provider-utils@3.0.9
|
|
9
|
+
|
|
10
|
+
## 2.0.15
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- c8aab0a: fix (provider/anthropic): revert cd458a8c1667df86e6987a1f2e06159823453864
|
|
15
|
+
|
|
3
16
|
## 2.0.14
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
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": {
|