This commit is contained in:
Timothy Jaeryang Baek
2026-07-27 00:55:16 -04:00
parent 1717b493d8
commit dd86b984bd
2 changed files with 49 additions and 4 deletions
+9 -2
View File
@@ -2076,6 +2076,7 @@ def process_messages_with_output(
message['output'],
raw=True,
reasoning_format=reasoning_format,
flatten_tool_images=True,
)
if output_messages:
processed.extend(output_messages)
@@ -5094,7 +5095,10 @@ async def streaming_chat_response_handler(response, ctx):
new_form_data['previous_response_id'] = last_response_id
else:
tool_messages = convert_output_to_messages(
output, raw=True, reasoning_format=get_reasoning_format(model)
output,
raw=True,
reasoning_format=get_reasoning_format(model),
flatten_tool_images=True,
)
# Chat Completions providers don't support multimodal
@@ -5335,7 +5339,10 @@ async def streaming_chat_response_handler(response, ctx):
'messages': [
*form_data['messages'],
*convert_output_to_messages(
output, raw=True, reasoning_format=get_reasoning_format(model)
output,
raw=True,
reasoning_format=get_reasoning_format(model),
flatten_tool_images=True,
),
],
}