mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-09-30 19:59:34 +02:00
feat(Report chart):
This commit is contained in:
1 parent
5855139d9c
commit
8182d5efec
5 files changed
+124
-22
No files matched your search
@@ -31,8 +31,7 @@ REFUSAL_MARKS = [
|
||||
|
||||
|
||||
def check_refusal(response: str, refusal_phrases: list = REFUSAL_MARKS) -> bool:
|
||||
"""
|
||||
Check if the response contains any phrases indicating refusal to answer.
|
||||
"""Check if the response contains any phrases indicating refusal to answer.
|
||||
|
||||
Args:
|
||||
- response (str): The response from the language model.
|
||||
|
||||
Reference in new issue
Block a user