@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.
@@ -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 Buffer.from(data, "base64").toString("utf-8");
1656
+ return new TextDecoder().decode(convertBase64ToUint8Array(data));
1656
1657
  }
1657
1658
  if (data instanceof Uint8Array) {
1658
1659
  return new TextDecoder().decode(data);