mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
precommit hook check and fixes
This commit is contained in:
parent
8bd515bd95
commit
4d660413e0
1 changed files with 3 additions and 1 deletions
|
|
@ -175,5 +175,7 @@ class NeMoGuardrails:
|
|||
user_message="Sorry I cannot do this.",
|
||||
violation_level=ViolationLevel.ERROR,
|
||||
metadata={"reason": "Content violates safety guidelines", "response": content or "(empty)"},
|
||||
) if is_blocked else None
|
||||
)
|
||||
if is_blocked
|
||||
else None
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue