mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix lakera ai testing
This commit is contained in:
parent
00a01bdfd5
commit
2df7df7af2
1 changed files with 4 additions and 1 deletions
|
@ -43,4 +43,7 @@ async def should_proceed_based_on_metadata(data: dict, guardrail_name: str) -> b
|
|||
if guardrail_name in requested_callback_names:
|
||||
return True
|
||||
|
||||
return False
|
||||
# Do no proceeed if - "metadata": { "guardrails": { "lakera_prompt_injection": false } }
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue