refac
This commit is contained in:
@@ -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,
|
||||
),
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user