From 847cf3111d6a61e19f14ff0edc78ddb32c870c8a Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 5 Jun 2024 16:26:50 -0700 Subject: [PATCH] fix(slack_alerting.py): fix email logo url env passed to proxy --- litellm/integrations/slack_alerting.py | 8 ++++++-- litellm/proxy/_super_secret_config.yaml | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/litellm/integrations/slack_alerting.py b/litellm/integrations/slack_alerting.py index 8c271c6844f..8f8eb514f87 100644 --- a/litellm/integrations/slack_alerting.py +++ b/litellm/integrations/slack_alerting.py @@ -1204,7 +1204,9 @@ Model Info: return False from litellm.proxy.proxy_server import premium_user, prisma_client - email_logo_url = os.getenv("SMTP_SENDER_LOGO", None) + email_logo_url = os.getenv( + "SMTP_SENDER_LOGO", os.getenv("EMAIL_LOGO_URL", None) + ) email_support_contact = os.getenv("EMAIL_SUPPORT_CONTACT", None) await self._check_if_using_premium_email_feature( premium_user, email_logo_url, email_support_contact @@ -1304,7 +1306,9 @@ Model Info: from litellm.proxy.proxy_server import premium_user, prisma_client - email_logo_url = os.getenv("SMTP_SENDER_LOGO", None) + email_logo_url = os.getenv( + "SMTP_SENDER_LOGO", os.getenv("EMAIL_LOGO_URL", None) + ) email_support_contact = os.getenv("EMAIL_SUPPORT_CONTACT", None) await self._check_if_using_premium_email_feature( premium_user, email_logo_url, email_support_contact diff --git a/litellm/proxy/_super_secret_config.yaml b/litellm/proxy/_super_secret_config.yaml index c6b0bb01101..48d4294cb8d 100644 --- a/litellm/proxy/_super_secret_config.yaml +++ b/litellm/proxy/_super_secret_config.yaml @@ -56,3 +56,7 @@ router_settings: litellm_settings: success_callback: ["langfuse"] + +general_settings: + alerting: ["email"] +