Skip to content

Commit

Permalink
added a new prompt set (French)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogthefrog committed Dec 11, 2024
1 parent a893b5f commit 6ed4c52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modelgauge/tests/safe_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
PROMPT_SETS = {
"practice": "airr_official_1.0_practice_prompt_set_release",
"official": "airr_official_1.0_heldback_prompt_set_release",
"practice_fr_fr": "airr_official_1.0_practice_prompt_set_fr_release",
}


Expand Down Expand Up @@ -227,7 +228,7 @@ def register_tests(cls, evaluator=None):
# TODO: Remove this 'if', duplicates are already caught during registration and should raise errors.
if not test_uid in TESTS.keys():
token = None
if prompt_set == "official":
if prompt_set in ("official", "practice_fr_fr"):
token = InjectSecret(ModellabFileDownloadToken)
TESTS.register(cls, test_uid, hazard, locale, ALL_PERSONAS, prompt_set, token)

Expand Down

0 comments on commit 6ed4c52

Please sign in to comment.