From f923a85f409123016f86b8853cecf96be637a431 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 9 Aug 2025 00:31:28 +0400 Subject: [PATCH] refac/fix: reasoning_content chunk --- backend/open_webui/utils/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/misc.py b/backend/open_webui/utils/misc.py index 107e2ed252..2a780209a7 100644 --- a/backend/open_webui/utils/misc.py +++ b/backend/open_webui/utils/misc.py @@ -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: