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
fix(proxy/utils.py): fix linting error
Krrish Dholakiaf9ae93187255
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.pyindex f2652ba2c68..23877fc9875 100644--- a/litellm/proxy/utils.py+++ b/litellm/proxy/utils.py@@ -3575,7 +3575,7 @@ def handle_exception_on_proxy(e: Exception) -> ProxyException:)-def _premium_user_check(feature:str=None):+def _premium_user_check(feature: Optional[str] = None):"""Raises an HTTPException if the user is not a premium user"""@@ -3589,9 +3589,7 @@ def _premium_user_check(feature:str=None):if not premium_user:raise HTTPException(status_code=403,- detail={- "error": detail_msg- },+ detail={"error": detail_msg},)