mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-05 08:10:30 +00:00
refac
This commit is contained in:
parent
8d568cc8c5
commit
8ef0f7743b
1 changed files with 3 additions and 0 deletions
|
|
@ -2723,6 +2723,9 @@ async def process_chat_response(
|
|||
|
||||
# Emit pending tool calls in real-time
|
||||
if response_tool_calls:
|
||||
# Flush any pending text first
|
||||
await flush_pending_delta_data()
|
||||
|
||||
pending_content_blocks = content_blocks + [
|
||||
{
|
||||
"type": "tool_calls",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue