Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Flag character transformer for invisible prompts. #38

Merged
merged 8 commits into from
Feb 12, 2024

Conversation

ChristBian1
Copy link
Contributor

Description

Flag emoji characters are often used to obfuscate prompts, making them invisible to human eyes but still recognized by AI agents. This transformer makes use of that character set to validate whether the API accepts such characters.

Tests

  • no new tests required
  • new tests added
  • existing tests adjusted

Documentation

  • no documentation changes needed
  • documentation added or edited
  • example notebook added or updated

Copy link

github-actions bot commented Feb 8, 2024

Test Results

93 tests  +2   93 ✅ +2   7s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 3b596ba. ± Comparison against base commit 86d6781.

♻️ This comment has been updated with latest results.

tests/test_prompt_transformer.py Outdated Show resolved Hide resolved
pyrit/prompt_transformer/flag_char_transformer.py Outdated Show resolved Hide resolved
tests/test_prompt_transformer.py Show resolved Hide resolved
@ChristBian1 ChristBian1 merged commit 58b8c7c into main Feb 12, 2024
7 checks passed
@ChristBian1 ChristBian1 deleted the users/christbian1/flagCharTransformer branch February 12, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants