-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Python: Error when running step8_assistant_vision.py: Invalid value for purpose #10211
Comments
Hi @anu43, are you running the sample out of the box, without modifications? Please let me know what OpenAI model you're using. I am able to run it with
|
I ran this by Azure OpenAI's |
You’ll want to use at least a May API version. I was testing with 2024-09-01-preview. Admittedly we can do better at documenting which AOAI api versions work. I will create a work item to do this. |
Tracking the docs improvements around which AOAI api versions to use for the sample in #10231. |
Description
When running
step8_assistant_vision.py
from the main repository, an error occurs indicating an invalid value for thepurpose
parameter.Steps to Reproduce
python/samples/getting_started_with_agents/
python step8_assistant_vision.py
Expected Behavior
The script should run without errors and process the cat image.
Actual Behavior
The script fails with an error:
openai.BadRequestError: Error code: 400 - {'error': {'code': 'invalidPayload', 'message': 'Invalid value for purpose.'}}
Environment
macOS 15.2
Python 3.10.13
semantic-kernel==1.18.2
openai==1.59.7
Error Message
The text was updated successfully, but these errors were encountered: