mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
rename lakera ai
This commit is contained in:
parent
042350bd74
commit
cad0352f76
5 changed files with 20 additions and 26 deletions
|
@ -126,10 +126,10 @@ def init_guardrails_v2(all_guardrails: dict):
|
|||
litellm.callbacks.append(_aporia_callback) # type: ignore
|
||||
elif litellm_params["guardrail"] == "lakera":
|
||||
from litellm.proxy.enterprise.enterprise_hooks.lakera_ai import (
|
||||
_ENTERPRISE_lakeraAI_Moderation,
|
||||
lakeraAI_Moderation,
|
||||
)
|
||||
|
||||
_lakera_callback = _ENTERPRISE_lakeraAI_Moderation()
|
||||
_lakera_callback = lakeraAI_Moderation()
|
||||
litellm.callbacks.append(_lakera_callback) # type: ignore
|
||||
|
||||
parsed_guardrail = Guardrail(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue