mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix importing _ENTERPRISE_Aporia
This commit is contained in:
parent
8254077394
commit
cf0d2baee8
3 changed files with 216 additions and 4 deletions
|
@ -119,7 +119,9 @@ def initialize_callbacks_on_proxy(
|
|||
)
|
||||
imported_list.append(lakera_moderations_object)
|
||||
elif isinstance(callback, str) and callback == "aporia_prompt_injection":
|
||||
from enterprise.enterprise_hooks.aporia_ai import _ENTERPRISE_Aporia
|
||||
from litellm.proxy.guardrails.guardrail_hooks.aporia_ai import (
|
||||
_ENTERPRISE_Aporia,
|
||||
)
|
||||
|
||||
if premium_user is not True:
|
||||
raise Exception(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue