refactor(responses): clarify output_item.added tool branches as if/elif chain

This commit is contained in:
Tin Chi Lo 2026-07-20 14:00:08 -07:00
parent 14c97ba8db
commit b080454d1f

View file

@ -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)
)