mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix lakera ai testing
This commit is contained in:
parent
1078c0f77a
commit
046b9d8f66
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