mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(fix) do nothing if alerting is not switched on
This commit is contained in:
parent
e80d32dcdd
commit
ca12e70369
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@ class ProxyLogging:
|
|||
user_current_spend: float,
|
||||
user_info=None,
|
||||
):
|
||||
if self.alerting is None:
|
||||
# do nothing if alerting is not switched on
|
||||
return
|
||||
|
||||
if type == "user_and_proxy_budget":
|
||||
user_info = dict(user_info)
|
||||
user_id = user_info["user_id"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue