-
Notifications
You must be signed in to change notification settings - Fork 303
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
Gandalf example not working #259
Comments
Did you run this in Jupyter? If so, make sure to restart the kernel after populating the env file. Also, Jupyter needs to be run from the directory where .env is stored. Don't use .env-example. Besides that, it could be that you filled the values incorrectly. That's hard to say without seeing your values, of course. Definitely don't post your key here, though. |
I run this from the Jupyter extension in VS Code. I thought it doesn't need a .env file because the gandalf.ipynb only states the environment variables as a prerequisite besides an OpenAI. Version: 1.90.2 (user setup) Jupyter v2024.5.0 Python 3.11.9 |
Right, but you need the connection data in either environment variables in your code (not recommended) or the .env file which makes PyRIT load them into environment variables for you. I can't really inspect your environment variables here, but The only other thing I can think of is that the api version you're using is getting retired on 7/1 but that's still a few days out... https://learn.microsoft.com/en-us/azure/ai-services/openai/api-version-deprecation |
Looked at this with @chvollm . Learnings:
|
I try to run the Gandalf example. I've deployed an Azure Open AI and put all details in environment variables. But the
ScoringRedTeamingOrchestrator
doesn't work.Error:
I'm completely new to AI. What else do I need to deploy the the Azure Open AI? It looks like the chat endpoint does not give something back. I assume I need to deploy something there? Did I miss anything in the rest of the documentation?
The text was updated successfully, but these errors were encountered: