Azure / PyRIT

The Python Risk Identification Tool for generative AI (PyRIT) is an open access automation framework to empower security professionals and machine learning engineers to proactively find risks in their generative AI systems.
MIT License
1.91k stars 366 forks source link

FIX Added "Invalid prompt" OAI error to bad request exception handler #500

Closed blakebullwinkel closed 4 weeks ago

blakebullwinkel commented 4 weeks ago

Description

This PR catches the "Invalid prompt" error from the OAI API in handle_bad_request_exception(). Thanks @rlundeen2 and @nina-msft!

Tests and Documentation

Tests have not been written for this function.