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: tighten api_key value check in credential validation
Yuneng Jiang2ea3fafb68e1
diff --git a/litellm/proxy/auth/auth_utils.py b/litellm/proxy/auth/auth_utils.pyindex 64766bbaadd..33f4134865d 100644--- a/litellm/proxy/auth/auth_utils.py+++ b/litellm/proxy/auth/auth_utils.py@@ -69,7 +69,8 @@ def check_complete_credentials(request_body: dict) -> bool:# complex credentials - easier to make a malicious requestreturn False- if "api_key" in request_body:+ api_key_value = request_body.get("api_key")+ if api_key_value and isinstance(api_key_value, str) and api_key_value.strip():return Truereturn False