From 0ec52e57b42406603ab4e2c07e4a14bc1a722bdc Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Fri, 14 Jun 2024 18:52:13 -0700 Subject: [PATCH] fix - send team budget crossed --- litellm/integrations/slack_alerting.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/integrations/slack_alerting.py b/litellm/integrations/slack_alerting.py index 2adc16349f..38cdc9ef86 100644 --- a/litellm/integrations/slack_alerting.py +++ b/litellm/integrations/slack_alerting.py @@ -1361,10 +1361,10 @@ Model Info: subject=email_event["subject"], html=email_event["html"], ) + if webhook_event.event_group == "team": + from litellm.integrations.email_alerting import send_team_budget_alert - from litellm.integrations.email_alerting import send_team_budget_alert - - await send_team_budget_alert(webhook_event=webhook_event) + await send_team_budget_alert(webhook_event=webhook_event) return False