Skip to content

Commit 7cfb260

Browse files
committed
refac
1 parent 49430de commit 7cfb260

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

backend/open_webui/utils/middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,7 +3366,7 @@ async def non_streaming_chat_response_handler(response, ctx):
33663366
await post_webhook(
33673367
request.app.state.WEBUI_NAME,
33683368
webhook_url,
3369-
f'{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}\n\n{content}',
3369+
f'{content}\n\n{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}',
33703370
{
33713371
'action': 'chat',
33723372
'message': content,
@@ -4910,7 +4910,7 @@ async def restricted_import(name, globals=None, locals=None, fromlist=(), level=
49104910
await post_webhook(
49114911
request.app.state.WEBUI_NAME,
49124912
webhook_url,
4913-
f'{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}\n\n{content}',
4913+
f'{content}\n\n{title} - {request.app.state.config.WEBUI_URL}/c/{metadata["chat_id"]}',
49144914
{
49154915
'action': 'chat',
49164916
'message': content,

0 commit comments

Comments
 (0)