From efd86e2cb4f2cb63f28fd67a0e4d2e945d5797a7 Mon Sep 17 00:00:00 2001 From: binxn <78713335+binxn@users.noreply.github.com> Date: Sun, 23 Mar 2025 17:14:20 +0100 Subject: [PATCH] Updated middleware.py to add OpenRouter compatibility --- backend/open_webui/utils/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index ccb459865..dc0a7638f 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -1560,7 +1560,7 @@ async def process_chat_response( value = delta.get("content") - reasoning_content = delta.get("reasoning_content") + reasoning_content = delta.get("reasoning_content") or delta.get("reasoning") if reasoning_content: if ( not content_blocks