-
Notifications
You must be signed in to change notification settings - Fork 384
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] Allow AAD Auth for AzureContentFilterScorer #455
Conversation
Hey Richard! Thanks for this PR. We don't currently have unit testing around PyRIT/doc/code/targets/2_gpt_4o_target.py Line 49 in 11a64f7
I'd recommend adding an example in this doc: https://github.com/Azure/PyRIT/blob/main/doc/code/scoring/2_azure_content_safety_scorers.py#L33 ...where you show how to use AzureContentFilterScorer with the |
Just trying to update the notebook, I'm getting an error when running:
I don't think that's my fault.... at least due to the changes I've made. |
Did you try deleting the local DuckDB in the results folder? Might be related to recent schema changes... |
Description
The
AzureContentFilterScorer
required an API key for use, which does not conform to all security policies.Tests and Documentation
Corresponding notebook and
.py
file updated. However, the Python file can't be run since it contains a bareawait
. And 'fixing' this by switching toasyncio.run()
then means the notebook doesn't work, since Jupyter must be creating an event loop.