@Zhou, Jie (周杰) Thanks for your reply. You can select any versions listed in the model dropdown as shown below:
But while calling the Azure Open AI endpoint from your python application, you can use api_version="2024-07-01-preview"
OR api_version="2024-05-01-preview"
or api_version="2024-04-01-preview"
.
Also note, while testing it from the Chat Playground, I confirmed that the Azure Open AI studio chat playground is using 2024-04-01-preview
version see below:
If you are encountering the below error:
AuthenticationError: Error code: 401 - {'error': {'code': 'Unauthorized', 'message': 'Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource.'}}
Please ensure that you are using the correct API key from the Keys and Endpoints section in your Azure Open AI:
Hope this helps.