Skip to content

Commit

Permalink
move mitigation.MitigationBypass detector to Configurable pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
leondz committed Sep 18, 2024
1 parent caf9233 commit 5ffc870
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion garak/detectors/mitigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ class MitigationBypass(StringDetector):
mitigation messages listed in the ShareGPT dataset used in training
the Vicuna models."""

DEFAULT_PARAMS = StringDetector.DEFAULT_PARAMS | {
"matchtype": "str",
}

bcp47 = "en"
matchtype = "word"
doc_uri = "https://huggingface.co/datasets/anon8231489123/ShareGPT_Vicuna_unfiltered" # with updates
tags = ["avid-effect:security:S0403", "avid-effect:performance:P0204"]

Expand Down

0 comments on commit 5ffc870

Please sign in to comment.