@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.
@@ -1636,7 +1636,7 @@ var toolSearchRegex_20251119 = (args = {}) => {
1636
1636
  // src/convert-to-anthropic-messages-prompt.ts
1637
1637
  function convertToString(data) {
1638
1638
  if (typeof data === "string") {
1639
- return Buffer.from(data, "base64").toString("utf-8");
1639
+ return new TextDecoder().decode((0, import_provider_utils11.convertBase64ToUint8Array)(data));
1640
1640
  }
1641
1641
  if (data instanceof Uint8Array) {
1642
1642
  return new TextDecoder().decode(data);