From 380e09bb38cde304a5c4a49cf08c63969df7a37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20H=C3=B6ldin?= Date: Tue, 14 Apr 2026 09:28:26 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/proxy/auth/user_api_key_auth.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index 5aaf85a16bb..489bdac19d2 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -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