Error https://MY_RESOURCE_NAME.openai.azure.com/openai/deployments/MY_DEPLOYMENT_NAME/completions?api-version=AVAILABLE-VERSION

Bogliardi Tommaso 0 Reputation points
2023-09-06T10:27:13.8933333+00:00

I'm using Azure OpenAI. When I call the endpoint (with correct data) "https://MY_RESOURCE_NAME.openai.azure.com/openai/deployments/MY_DEPLOYMENT_NAME/completions?api-version=AVAILABLE-VERSION" I have this error: "{"error":{"code" :"404","message": "Resource not found"}}".

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Saurabh Sharma 23,846 Reputation points Microsoft Employee Moderator
    2023-09-06T15:28:45.7966667+00:00

    Hi @Bogliardi Tommaso ,

    Thanks for using Microsoft Q&A!!

    I believe you are trying to pass the model version to the REST endpoint and thus you are getting this error.

    Please pass the api version in correct date format like - "2023-05-15" as mentioned in the documentation.

    User's image

    Current supported versions as per the documentation is as follows-

    User's image

    Please let me know if that's not the case so that we can further look into this issue.

    Thanks

    Saurabh


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.