Skip to content

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]

fix allow setting license in config.yaml

Ishaan Jaffcc8e6f1d4446
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 0607dae9dc2..5c4fa6ef330 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -1878,6 +1878,11 @@ class ProxyConfig:
+ CommonProxyErrors.not_premium_user.value
)
+ # check if litellm_license in general_settings
+ if "litellm_license" in general_settings:
+ _license_check.license_str = general_settings["litellm_license"]
+ premium_user = _license_check.is_premium()
+
router_params: dict = {
"cache_responses": litellm.cache
!= None, # cache if user passed in cache values