mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +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
|
@ -143,6 +143,7 @@ def test_handle_db_exception_with_non_db_error():
|
|||
regular_error = litellm.BudgetExceededError(
|
||||
current_cost=10,
|
||||
max_budget=10,
|
||||
budget_reset_at="2025-01-01T00:00:00Z",
|
||||
)
|
||||
with pytest.raises(litellm.BudgetExceededError):
|
||||
PrismaDBExceptionHandler.handle_db_exception(regular_error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue