mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
style: ruff format user_api_key_auth master-key budget guard
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
33970a0a86
commit
0b0ad6828f
1 changed files with 1 additions and 4 deletions
|
|
@ -1607,10 +1607,7 @@ async def _user_api_key_auth_builder(
|
|||
valid_token=_user_api_key_obj, end_user_params=end_user_params
|
||||
)
|
||||
|
||||
if (
|
||||
RouteChecks.is_llm_api_route(route=route)
|
||||
and litellm.enforce_end_user_model_max_budget_on_master_key
|
||||
):
|
||||
if RouteChecks.is_llm_api_route(route=route) and litellm.enforce_end_user_model_max_budget_on_master_key:
|
||||
await _enforce_end_user_model_max_budget_checks(
|
||||
valid_token=_user_api_key_obj,
|
||||
request_data=request_data,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue