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(auth): guard JWTHandler.is_jwt() against None token
Ryan Crabbee36ab04a1856
diff --git a/litellm/proxy/auth/handle_jwt.py b/litellm/proxy/auth/handle_jwt.pyindex bfad9f0c3c7..86f7d614b95 100644--- a/litellm/proxy/auth/handle_jwt.py+++ b/litellm/proxy/auth/handle_jwt.py@@ -89,7 +89,9 @@ class JWTHandler:self.leeway = leeway@staticmethod- def is_jwt(token: str):+ def is_jwt(token: Optional[str]):+ if token is None:+ return Falseparts = token.split(".")return len(parts) == 3