@ai-sdk/anthropic 3.0.52 → 3.0.53
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +2 -1
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/convert-to-anthropic-messages-prompt.ts +2 -1
package/dist/internal/index.mjs
CHANGED
|
@@ -1443,6 +1443,7 @@ import {
|
|
|
1443
1443
|
UnsupportedFunctionalityError as UnsupportedFunctionalityError2
|
|
1444
1444
|
} from "@ai-sdk/provider";
|
|
1445
1445
|
import {
|
|
1446
|
+
convertBase64ToUint8Array,
|
|
1446
1447
|
convertToBase64,
|
|
1447
1448
|
parseProviderOptions,
|
|
1448
1449
|
validateTypes as validateTypes2,
|
|
@@ -1652,7 +1653,7 @@ var toolSearchRegex_20251119 = (args = {}) => {
|
|
|
1652
1653
|
// src/convert-to-anthropic-messages-prompt.ts
|
|
1653
1654
|
function convertToString(data) {
|
|
1654
1655
|
if (typeof data === "string") {
|
|
1655
|
-
return
|
|
1656
|
+
return new TextDecoder().decode(convertBase64ToUint8Array(data));
|
|
1656
1657
|
}
|
|
1657
1658
|
if (data instanceof Uint8Array) {
|
|
1658
1659
|
return new TextDecoder().decode(data);
|