Update your code to use the latest Azure OpenAI Service preview API by 2 April 2024

Dennis Hasselgaard Larsen (ADMIN) 0 Reputation points
2024-04-02T07:34:46.3533333+00:00

Hi, Just recieved this Email, about our API needs to get updatet.


Update your code to use the latest Azure OpenAI Service preview API by 2 April 2024

You're receiving this email because you've used an older Azure OpenAI Service preview API in the last 30 days.

We recently made Azure OpenAI API version 2024-02-15-preview available. You'll need to update any code that uses the following older versions before they're retired on 2 April 2024:


I only activated the Azure OpenAI service in Azure on my tenat and do not know how to do this update.

Are there any guides, though the update came automatically because it was an one click install as an application on our Tenant?

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

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 34,016 Reputation points
    2024-04-02T08:04:55.3766667+00:00

    Dennis Hasselgaard Larsen (ADMIN) Greetings & Welcome to Microsoft Q&A forum!

    You might have received an email incase if you have used the previous versions of API in your code earlier.

    If you are currently using a preview API version to take advantage of the latest features, we recommend consulting the API version lifecycle article to track how long your current API version will be supported.

    To update your code to use the latest Azure OpenAI Service preview API, you need to modify the API version in your code to "2024-02-15-preview". version.

    Below is a sample piece of code how you can modify the version in your API.

    User's image

    Azure OpenAI API version 2024-03-01-preview is currently the latest preview release.

    2024-03-01-preview has all the same functionality as 2024-02-15-preview and adds two new parameters for embeddings. Please see What's new in Azure OpenAI Service for more details.

    I only activated the Azure OpenAI service in Azure on my tenat and do not know how to do this update. Are there any guides, though the update came automatically because it was an one click install as an application on our Tenant?

    AFAIK, this is general update for APIs. This needs to be updated in your code manually. For example, if you are working with Chat Completion API, you need to specify the version manually.

    I would suggest you check Working with the GPT-3.5-Turbo and GPT-4 models and Azure OpenAI Service REST API reference for more details.

    Do let me know if that helps or have any other queries.

    If the response helped, please do click Accept Answer and Yes for was this answer helpful. So that it can help others in the community looking for help on similar topics.


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.