@ai-sdk/anthropic 2.0.51 → 2.0.52

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,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.52
4
+
5
+ ### Patch Changes
6
+
7
+ - 518e786: fix(anthropic): send {} as tool input when streaming tool calls without arguments
8
+
3
9
  ## 2.0.51
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
31
31
  var import_provider_utils20 = require("@ai-sdk/provider-utils");
32
32
 
33
33
  // src/version.ts
34
- var VERSION = true ? "2.0.51" : "0.0.0-test";
34
+ var VERSION = true ? "2.0.52" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");
@@ -2646,7 +2646,7 @@ var AnthropicMessagesLanguageModel = class {
2646
2646
  type: "tool-call",
2647
2647
  toolCallId: contentBlock.toolCallId,
2648
2648
  toolName,
2649
- input: contentBlock.input,
2649
+ input: contentBlock.input === "" ? "{}" : contentBlock.input,
2650
2650
  providerExecuted: contentBlock.providerExecuted
2651
2651
  });
2652
2652
  }