fix(slack_alerting.py): cleanup webhook event

This commit is contained in:
Krrish Dholakia 2024-05-20 16:55:01 -07:00
parent cba2b729b2
commit 867f9300e3
6 changed files with 129 additions and 189 deletions

View file

@ -290,12 +290,9 @@ class ProxyLogging:
"token_budget",
"user_budget",
"team_budget",
"user_and_proxy_budget",
"failed_budgets",
"proxy_budget",
"projected_limit_exceeded",
],
user_max_budget: float,
user_current_spend: float,
user_info: CallInfo,
):
if self.alerting is None:
@ -303,8 +300,6 @@ class ProxyLogging:
return
await self.slack_alerting_instance.budget_alerts(
type=type,
user_max_budget=user_max_budget,
user_current_spend=user_current_spend,
user_info=user_info,
)