@ai-sdk/anthropic 2.0.0-beta.1 → 2.0.0-beta.2

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.0-beta.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d601ed9: fix (provider/anthropic): send tool call id in tool-input-start chunk
8
+
3
9
  ## 2.0.0-beta.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1249,7 +1249,7 @@ var AnthropicMessagesLanguageModel = class {
1249
1249
  controller.enqueue(
1250
1250
  jsonResponseTool != null ? { type: "text-start", id: String(value.index) } : {
1251
1251
  type: "tool-input-start",
1252
- id: String(value.index),
1252
+ id: value.content_block.id,
1253
1253
  toolName: value.content_block.name
1254
1254
  }
1255
1255
  );