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 general guardrails on free tier

Ishaan Jaff20a5bbe6a6ff
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 4e11976279c..be8ccbaebf9 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -1621,12 +1621,6 @@ class ProxyConfig:
elif key == "cache" and value is False:
pass
elif key == "guardrails":
- if premium_user is not True:
- raise ValueError(
- "Trying to use `guardrails` on config.yaml "
- + CommonProxyErrors.not_premium_user.value
- )
-
guardrail_name_config_map = initialize_guardrails(
guardrails_config=value,
premium_user=premium_user,