mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
working lakera ai during call hook
This commit is contained in:
parent
1a142053e5
commit
1fdebfb0b7
5 changed files with 28 additions and 22 deletions
|
@ -301,8 +301,9 @@ class lakeraAI_Moderation(CustomGuardrail):
|
|||
user_api_key_dict: UserAPIKeyAuth,
|
||||
call_type: Literal["completion", "embeddings", "image_generation"],
|
||||
):
|
||||
if self.moderation_check == "pre_call":
|
||||
return
|
||||
if self.event_hook is None:
|
||||
if self.moderation_check == "pre_call":
|
||||
return
|
||||
|
||||
from litellm.types.guardrails import GuardrailEventHooks
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue