An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hello @Cloud Technicalhub
Here are a few things you could check:
- API Version: Ensure that the API version in your URL matches the one in the Azure documentation. You’ve mentioned
api-version=2023-06-01-previewin the error andapi-version=2023-03-15-previewin your code. Make sure to use the correct and latest version. - Endpoint and Deployment Name: Verify that
{AOAIEndpoint}and{AOAIDeployment}in your URL are being correctly replaced with your actual Azure OpenAI endpoint and deployment name. - API Key: Check if the ‘api-key’ in your headers is correctly set to your Azure OpenAI API key.
- Request Body: Ensure that the ‘messages’ in your request body is correctly formatted and contains all the necessary information.
If you’ve checked all of these and are still encountering the issue, it might be helpful to print out the full error message or response body (if available) for more detailed debugging information. Please remember to redact any sensitive information before sharing error logs publicly.
If this helps, please mark this as an accepted answer, so as to help further readers who may have similar questions.