Getting 'Resource not found' error after updating code to use the latest Azure OpenAI Service preview API for Chat Completion

Karuna Tiwari 100 Reputation points
2024-04-03T17:57:28.93+00:00

We have built a question-answering App using Bring your own data using the Azure OpenAI Chat completion API which works fine when we use the API version = 2023-06-01-preview.

But if we upgrade the version to latest 2024-03-01-preview or 2024-02-15-preview, we get a 'Resource not Found' error.

Can anybody please help? We are using openai==1.16.1.

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

Accepted answer
  1. AshokPeddakotla-MSFT 27,491 Reputation points
    2024-04-04T03:46:09.4233333+00:00

    Karuna Tiwari Greetings!

    The 2023-06-01-preview API will remain supported at this time.

    But if we upgrade the version to latest 2024-03-01-preview or 2024-02-15-preview, we get a 'Resource not Found' error.

    Could you confirm how exactly are you upgrading?

    Regarding resource not found error for 2024-03-01-preview or 2024-02-15-preview, please see this PR and check for the naming conventions and be sure to merge the latest API version update into your own application code and redeploy.

    These changes will work for both 2024-02-15-preview and 2024-03-01-preview.

    Do let me know if that works or have any further queries.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful