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

FIX: Not raising exceptions on None responses #590

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

rlundeen2
Copy link
Contributor

EmptyResponseExceptions are raised when a target expects a response but only an empty string is returned.

Right now, PyRIT retries these. This is probably correct. However, previously, this error would re-raise. There are some models operators were testing that had this re-raise, and we don't want to stop execution.

This change makes is so EmptyResponseException are not re-raised

Tests and Documentation

  • Checked that self-ask scorers are fine with empty content
  • Added a test so that the normalizer returns the proper content

@rlundeen2 rlundeen2 merged commit f4d7565 into Azure:main Dec 3, 2024
3 of 9 checks passed
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.

2 participants