@ai-sdk/anthropic 3.0.51 → 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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 3.0.53
4
+
5
+ ### Patch Changes
6
+
7
+ - 89caf28: fix(openai-compat): decode base64 string data
8
+
9
+ ## 3.0.52
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [08336f1]
14
+ - @ai-sdk/provider-utils@4.0.17
15
+
3
16
  ## 3.0.51
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ var import_provider4 = require("@ai-sdk/provider");
32
32
  var import_provider_utils24 = require("@ai-sdk/provider-utils");
33
33
 
34
34
  // src/version.ts
35
- var VERSION = true ? "3.0.51" : "0.0.0-test";
35
+ var VERSION = true ? "3.0.53" : "0.0.0-test";
36
36
 
37
37
  // src/anthropic-messages-language-model.ts
38
38
  var import_provider3 = require("@ai-sdk/provider");
@@ -1644,7 +1644,7 @@ var toolSearchRegex_20251119 = (args = {}) => {
1644
1644
  // src/convert-to-anthropic-messages-prompt.ts
1645
1645
  function convertToString(data) {
1646
1646
  if (typeof data === "string") {
1647
- return Buffer.from(data, "base64").toString("utf-8");
1647
+ return new TextDecoder().decode((0, import_provider_utils11.convertBase64ToUint8Array)(data));
1648
1648
  }
1649
1649
  if (data instanceof Uint8Array) {
1650
1650
  return new TextDecoder().decode(data);