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: remove leading space from license public_key.pem (#25339)
milan-berrie0a578fbdda7
diff --git a/litellm/proxy/auth/public_key.pem b/litellm/proxy/auth/public_key.pemindex 0962794ac91..437befbf08f 100644--- a/litellm/proxy/auth/public_key.pem+++ b/litellm/proxy/auth/public_key.pem@@ -1,4 +1,4 @@- -----BEGIN PUBLIC KEY-----+-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwcNBabWBZzrDhFAuA4FhFhIcA3rF7vrLb8+1yhF2U62AghQp9nStyuJRjxMUuldWgJ1yRJ2s7UffVw5r8DeAdqXPD+w+3LCNwqJGaIKN08QGJXNArM3QtMaN0RTzAyQ4iibN1r6609W5muK9wGp0diff --git a/tests/test_litellm/proxy/auth/test_litellm_license.py b/tests/test_litellm/proxy/auth/test_litellm_license.pyindex dfb17d77f71..687f3eb4017 100644--- a/tests/test_litellm/proxy/auth/test_litellm_license.py+++ b/tests/test_litellm/proxy/auth/test_litellm_license.py@@ -11,6 +11,14 @@ sys.path.insert(from litellm.proxy.auth.litellm_license import LicenseCheck+def test_read_public_key_loads_successfully():+ """Ensure public_key.pem is valid PEM with no leading whitespace."""+ license_check = LicenseCheck()+ assert license_check.public_key is not None, (+ "public_key.pem could not be loaded — check for leading whitespace or malformed PEM header"+ )++def test_is_over_limit():license_check = LicenseCheck()license_check.airgapped_license_data = {"max_users": 100}