mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
refac/fix: reasoning_content chunk
This commit is contained in:
parent
8714df17dd
commit
f923a85f40
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ def openai_chat_chunk_message_template(
|
|||
if tool_calls:
|
||||
template["choices"][0]["delta"]["tool_calls"] = tool_calls
|
||||
|
||||
if not content and not tool_calls:
|
||||
if not content and not reasoning_content and not tool_calls:
|
||||
template["choices"][0]["finish_reason"] = "stop"
|
||||
|
||||
if usage:
|
||||
|
|
|
|||
Loading…
Reference in a new issue