mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +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:
commit
6cd7631e2e
1 changed files with 2 additions and 0 deletions
|
|
@ -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":
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue