Timothy Jaeryang Baek 4 månader sedan
förälder
incheckning
50db2514dc
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      backend/open_webui/utils/middleware.py

+ 2 - 2
backend/open_webui/utils/middleware.py

@@ -611,12 +611,12 @@ async def process_chat_response(request, response, user, events, metadata, tasks
                                 if webhook_url:
                                 if webhook_url:
                                     post_webhook(
                                     post_webhook(
                                         webhook_url,
                                         webhook_url,
-                                        f"{title} - {WEBUI_URL}/{metadata['chat_id']}\n\n{content}",
+                                        f"{title} - {WEBUI_URL}/c/{metadata['chat_id']}\n\n{content}",
                                         {
                                         {
                                             "action": "chat",
                                             "action": "chat",
                                             "message": content,
                                             "message": content,
                                             "title": title,
                                             "title": title,
-                                            "url": f"{WEBUI_URL}/{metadata['chat_id']}",
+                                            "url": f"{WEBUI_URL}/c/{metadata['chat_id']}",
                                         },
                                         },
                                     )
                                     )