@ai-sdk/anthropic 3.0.0-beta.67 → 3.0.0-beta.68

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
+ ## 3.0.0-beta.68
4
+
5
+ ### Patch Changes
6
+
7
+ - 9e35785: fix(anthropic): send {} as tool input when streaming tool calls without arguments
8
+
3
9
  ## 3.0.0-beta.67
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 ? "3.0.0-beta.67" : "0.0.0-test";
34
+ var VERSION = true ? "3.0.0-beta.68" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");
@@ -2856,7 +2856,7 @@ var AnthropicMessagesLanguageModel = class {
2856
2856
  type: "tool-call",
2857
2857
  toolCallId: contentBlock.toolCallId,
2858
2858
  toolName,
2859
- input: contentBlock.input,
2859
+ input: contentBlock.input === "" ? "{}" : contentBlock.input,
2860
2860
  providerExecuted: contentBlock.providerExecuted
2861
2861
  });
2862
2862
  }