mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-17 16:17:18 +00:00
Merge pull request #4554 from igor-drozdov/id-add-index-to-anthropic-tool-use
fix(anthropic.py): add index to streaming tool use
This commit is contained in:
@@ -757,6 +757,7 @@ class ModelResponseIterator:
|
||||
"name": None,
|
||||
"arguments": content_block["delta"]["partial_json"],
|
||||
},
|
||||
"index": content_block["index"],
|
||||
}
|
||||
elif type_chunk == "content_block_start":
|
||||
"""
|
||||
@@ -774,6 +775,7 @@ class ModelResponseIterator:
|
||||
"name": content_block_start["content_block"]["name"],
|
||||
"arguments": "",
|
||||
},
|
||||
"index": content_block_start["index"],
|
||||
}
|
||||
elif type_chunk == "message_delta":
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user