The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Update litellm/proxy/management_endpoints/key_management_endpoints.py
jesus-berriee7d2b50946b
diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.pyindex 4f4e56d7418..f60e68bcfe7 100644--- a/litellm/proxy/management_endpoints/key_management_endpoints.py+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py@@ -1233,8 +1233,7 @@ async def _common_key_generation_helper(# Delegated-authority ceiling (GHSA-q775-qw9r-2r4g): a non-admin caller# cannot grant a key a higher budget than their own authority.- # Session tokens (lite login) use their session max_budget for team keys, but- # personal keys are capped by user_max_budget when it is available.+ # UI session personal keys are capped by user_max_budget when it is available.is_ui_session_token: Final = user_api_key_dict.team_id == UI_SESSION_TOKEN_TEAM_IDis_ui_session_team_key = is_ui_session_token and _requested_team_id is not Noneif (