@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/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@ai-sdk/provider-utils";
12
12
 
13
13
  // src/version.ts
14
- var VERSION = true ? "2.0.51" : "0.0.0-test";
14
+ var VERSION = true ? "2.0.52" : "0.0.0-test";
15
15
 
16
16
  // src/anthropic-messages-language-model.ts
17
17
  import {
@@ -2666,7 +2666,7 @@ var AnthropicMessagesLanguageModel = class {
2666
2666
  type: "tool-call",
2667
2667
  toolCallId: contentBlock.toolCallId,
2668
2668
  toolName,
2669
- input: contentBlock.input,
2669
+ input: contentBlock.input === "" ? "{}" : contentBlock.input,
2670
2670
  providerExecuted: contentBlock.providerExecuted
2671
2671
  });
2672
2672
  }