mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
refactor(responses): clarify output_item.added tool branches as if/elif chain
This commit is contained in:
parent
14c97ba8db
commit
b080454d1f
1 changed files with 1 additions and 1 deletions
|
|
@ -1229,7 +1229,7 @@ class OpenAiResponsesToChatCompletionStreamIterator(BaseModelResponseIterator):
|
|||
)
|
||||
]
|
||||
)
|
||||
if output_item.get("type") == "custom_tool_call":
|
||||
elif output_item.get("type") == "custom_tool_call":
|
||||
tool_call_index = OpenAiResponsesToChatCompletionStreamIterator._sequential_tool_call_index(
|
||||
tool_call_index_map, parsed_chunk.get("output_index", 0)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue