From 688f11e1c5bd4b577d4f4496326dbfecd06a5402 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 24 Dec 2024 21:17:24 -0700 Subject: [PATCH] refac --- backend/open_webui/utils/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/utils/webhook.py b/backend/open_webui/utils/webhook.py index d4bdbdb4f..942e62e85 100644 --- a/backend/open_webui/utils/webhook.py +++ b/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: