mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Apply suggestions from code review
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
653fc297b1
commit
380e09bb38
1 changed files with 0 additions and 4 deletions
|
|
@ -271,11 +271,7 @@ async def _check_end_user_budget(
|
|||
|
||||
# Check if model has zero cost - if so, skip budget check
|
||||
model = get_model_from_request(request_data, route)
|
||||
if model is not None and llm_router is not None:
|
||||
from litellm.proxy.auth.auth_checks import _is_model_cost_zero
|
||||
|
||||
if _is_model_cost_zero(model=model, llm_router=llm_router):
|
||||
verbose_proxy_logger.info(
|
||||
f"Skipping all budget checks for zero-cost model: {model}"
|
||||
)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue