Azure / azure-openai-samples

Azure OpenAI Samples is a collection of code samples illustrating how to use Azure Open AI in creating AI solution for various use cases across industries. This repository is mained by a community of volunters. We welcomed your contributions.
MIT License
543 stars 387 forks source link

Updates needed due to retirement of older models #33

Open kottofy opened 1 year ago

kottofy commented 1 year ago

According to this announcement, some of the Azure OpenAI Service Models are set to be retired/replaced. For new Azure OpenAI Service deployments, the retiring models are no longer available.

https://techcommunity.microsoft.com/t5/azure-ai-services-blog/announcing-updates-to-azure-openai-service-models/ba-p/3866757

The older models are referenced in the .env.sample and an example of where these could be updated in a notebook is here: https://github.com/Azure/azure-openai-samples/blob/main/fundamentals/langchain/01_query_based_search_with_cognitive_search.ipynb

A workaround until the variables can be merged might be to set the .env variables (FYI haven't tested this). from:

DOCUMENT_MODEL_NAME=curie-search-doc
QUERY_MODEL_NAME=curie-query-doc
DEPLOYMENT_NAME=text-davinci-003
COMPLETIONS_MODEL=text-davinci-002

to

DOCUMENT_MODEL_NAME=text-embedding-ada-002
QUERY_MODEL_NAME=text-embedding-ada-002
DEPLOYMENT_NAME=gpt-35-turbo-instruct
COMPLETIONS_MODEL=gpt-35-turbo-instruct