mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(slack_alerting.py): cleanup webhook event
This commit is contained in:
parent
cba2b729b2
commit
867f9300e3
6 changed files with 129 additions and 189 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue