mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 06:42:47 +00:00
refac
This commit is contained in:
parent
4442411f40
commit
688f11e1c5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user