From 7cfb260b8a1e13fc8aa7975132cf7c43910aeb76 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 17 Apr 2026 15:01:42 +0900 Subject: [PATCH] refac --- backend/open_webui/utils/middleware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/utils/middleware.py b/backend/open_webui/utils/middleware.py index 6db969261b..d44112b4ec 100644 --- a/backend/open_webui/utils/middleware.py +++ b/backend/open_webui/utils/middleware.py @@ -3366,7 +3366,7 @@ async def non_streaming_chat_response_handler(response, ctx): await post_webhook( request.app.state.WEBUI_NAME, webhook_url, - f'{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}\n\n{content}', + f'{content}\n\n{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}', { 'action': 'chat', 'message': content, @@ -4910,7 +4910,7 @@ async def streaming_chat_response_handler(response, ctx): await post_webhook( request.app.state.WEBUI_NAME, webhook_url, - f'{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}\n\n{content}', + f'{content}\n\n{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}', { 'action': 'chat', 'message': content,