mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix: show budget reset date in BudgetExceededError message
This commit is contained in:
parent
aff0d1a18c
commit
731263b32e
10 changed files with 33 additions and 8 deletions
|
@ -1035,6 +1035,7 @@ def client(original_function): # noqa: PLR0915
|
|||
raise BudgetExceededError(
|
||||
current_cost=litellm._current_cost,
|
||||
max_budget=litellm.max_budget,
|
||||
budget_reset_at=litellm.budget_reset_at,
|
||||
)
|
||||
|
||||
# [OPTIONAL] CHECK MAX RETRIES / REQUEST
|
||||
|
@ -1283,6 +1284,7 @@ def client(original_function): # noqa: PLR0915
|
|||
raise BudgetExceededError(
|
||||
current_cost=litellm._current_cost,
|
||||
max_budget=litellm.max_budget,
|
||||
budget_reset_at=litellm.budget_reset_at,
|
||||
)
|
||||
|
||||
# [OPTIONAL] CHECK CACHE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue