Skip to content

v0.8.0

Choose a tag to compare

@romanlutz romanlutz released this 27 Mar 07:12
· 613 commits to main since this release
0ec40d4

What's Changed

Targets:

  • HTTPTarget now supports rate limiting
  • Some users encountered errors in Azure OpenAI when hitting content filter errors using error code 500. PyRIT now catches content filter responses with both error codes 400 (as before) and 500 (new) and returns a clean response record.

Datasets:

  • fetch_babelscape_alert_dataset had a bug causing it to be limited to a single category even when users specified both. This is now fixed!
  • added fetch_red_team_social_bias_dataset
  • added fetch_darkbench_dataset
  • added fetch_mlcommons_ailuminate_demo_dataset

Converters:

  • added UnicodeReplacementConverter
  • added sneaky_bits option to AsciiSmugglerConverter in the encoding_mode argument. The unicode_tags argument is now removed and replaced by more options in encoding_mode (i.e., unicode_tags, unicode_tags_control, and sneaky_bits).

Scanner: A basic version was introduced in v0.7.0 that supported only sending single-turn prompts. v0.8.0 expands on this with support for most multi-turn orchestrators (incl. adversarial chat targets and scorers) and memory. This feature is still considered experimental and may change considerably in the following versions.

Other:

  • support for Python 3.13 in addition to 3.10-3.12.
  • For single-piece responses, we now have a convenient get_value() method.
  • PyRIT used to print warnings that torch isn't installed (unless the corresponding extra was installed). This was caused by transformers and is now turned off as it doesn't serve any purpose.
  • In previous versions, PyRIT started supporting .env.local as an override to the .env file for endpoint secrets. However, when using this outside of the normal repository structure (e.g., when running PyRIT without cloning this repo) the code failed to discover .env.local in the current working directory. This is now fixed.

Full list of changes

New Contributors

Full Changelog: Azure/PyRIT@v0.7.0...v0.8.0