mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
fix: log warning on ImportError in zero-cost model check
The ImportError was silently swallowed, making it hard to diagnose when the zero-cost exemption couldn't run. Add a warning log so operators can see when the check is skipped.
This commit is contained in:
parent
8ac6721641
commit
f04eeccead
1 changed files with 4 additions and 1 deletions
|
|
@ -94,7 +94,10 @@ class _PROXY_MaxBudgetLimiter(CustomLogger):
|
|||
)
|
||||
return
|
||||
except ImportError:
|
||||
pass
|
||||
verbose_proxy_logger.warning(
|
||||
"MaxBudgetLimiter: ImportError when checking zero-cost model; "
|
||||
"skipping exemption and enforcing budget limit."
|
||||
)
|
||||
|
||||
raise ProxyRateLimitError(
|
||||
detail="Max budget limit reached.",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue