mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(fix) better alert message on budgets
This commit is contained in:
parent
81c528f6ce
commit
229e4920df
1 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ class ProxyLogging:
|
||||||
|
|
||||||
# check if 5% of max budget is left
|
# check if 5% of max budget is left
|
||||||
if percent_left <= 0.05:
|
if percent_left <= 0.05:
|
||||||
message = "5 Percent budget left for" + user_info
|
message = "5% budget left for" + user_info
|
||||||
await self.alerting_handler(
|
await self.alerting_handler(
|
||||||
message=message,
|
message=message,
|
||||||
level="Medium",
|
level="Medium",
|
||||||
|
@ -223,7 +223,7 @@ class ProxyLogging:
|
||||||
|
|
||||||
# check if 15% of max budget is left
|
# check if 15% of max budget is left
|
||||||
if percent_left <= 0.15:
|
if percent_left <= 0.15:
|
||||||
message = "15 Percent budget left for" + user_info
|
message = "15% budget left for" + user_info
|
||||||
await self.alerting_handler(
|
await self.alerting_handler(
|
||||||
message=message,
|
message=message,
|
||||||
level="Low",
|
level="Low",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue