forked from phoenix/litellm-mirror
fix allow general guardrails on free tier
This commit is contained in:
parent
f5de7516cc
commit
20a5bbe6a6
1 changed files with 0 additions and 6 deletions
|
@ -1621,12 +1621,6 @@ class ProxyConfig:
|
||||||
elif key == "cache" and value is False:
|
elif key == "cache" and value is False:
|
||||||
pass
|
pass
|
||||||
elif key == "guardrails":
|
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(
|
guardrail_name_config_map = initialize_guardrails(
|
||||||
guardrails_config=value,
|
guardrails_config=value,
|
||||||
premium_user=premium_user,
|
premium_user=premium_user,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue