@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/index.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "@ai-sdk/provider-utils";
|
|
12
12
|
|
|
13
13
|
// src/version.ts
|
|
14
|
-
var VERSION = true ? "3.0.0-beta.
|
|
14
|
+
var VERSION = true ? "3.0.0-beta.97" : "0.0.0-test";
|
|
15
15
|
|
|
16
16
|
// src/anthropic-messages-language-model.ts
|
|
17
17
|
import {
|
|
@@ -1726,6 +1726,9 @@ async function convertToAnthropicMessagesPrompt({
|
|
|
1726
1726
|
case "tool": {
|
|
1727
1727
|
for (let i2 = 0; i2 < content.length; i2++) {
|
|
1728
1728
|
const part = content[i2];
|
|
1729
|
+
if (part.type === "tool-approval-response") {
|
|
1730
|
+
continue;
|
|
1731
|
+
}
|
|
1729
1732
|
const isLastPart = i2 === content.length - 1;
|
|
1730
1733
|
const cacheControl = (_d = validator.getCacheControl(part.providerOptions, {
|
|
1731
1734
|
type: "tool result part",
|