Timothy Jaeryang Baek 4 месяцев назад
Родитель
Сommit
688f11e1c5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      backend/open_webui/utils/webhook.py

+ 1 - 1
backend/open_webui/utils/webhook.py

@@ -22,7 +22,7 @@ def post_webhook(url: str, message: str, event_data: dict) -> bool:
             payload["content"] = (
                 message
                 if len(message) > 2000
-                else f"{message[: 2000 - 14]}... (truncated)"
+                else f"{message[: 2000 - 20]}... (truncated)"
             )
         # Microsoft Teams Webhooks
         elif "webhook.office.com" in url: