From 6d43d65e22109cf3098998a91a3381a5d72bc30c Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 25 Apr 2024 15:43:54 -0700 Subject: [PATCH] fix add alert_to_webhook_url to general settings --- litellm/proxy/_types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index f1d824b8640..293d06023a9 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -720,6 +720,10 @@ class ConfigGeneralSettings(LiteLLMBase): None, description="List of alerting types. By default it is all alerts", ) + alert_to_webhook_url: Optional[Dict] = Field( + None, + description="Mapping of alert type to webhook url. e.g. `alert_to_webhook_url: {'budget_alerts': 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX'}`", + ) alerting_threshold: Optional[int] = Field( None,