fix allow general guardrails on free tier

This commit is contained in:
Ishaan Jaff 2024-09-04 19:59:32 -07:00
parent f5de7516cc
commit 20a5bbe6a6

View file

@ -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,