Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.91k stars 4.05k forks source link

InvalidTemplateDeployment & CannotChangeDeploymentModel #1121

Open ayoubazaouyat opened 8 months ago

ayoubazaouyat commented 8 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

I did azd auth login and filled all the env Variables I have already AZURE_ENV_NAME="xxxxr" AZURE_LOCATION="eastus2" AZURE_OPENAI_CHATGPT_DEPLOYMENT="xxxxx" AZURE_OPENAI_EMB_DEPLOYMENT="text-embedding-ada-002" AZURE_OPENAI_SERVICE="332Model" AZURE_RESOURCE_GROUP="xxxxxx" AZURE_SEARCH_INDEX="xxx-index" AZURE_SEARCH_SERVICE="xxxx332cog" AZURE_SEARCH_SERVICE_LOCATION="eastus2" AZURE_SEARCH_SERVICE_RESOURCE_GROUP="xxxxxx" AZURE_STORAGE_ACCOUNT="xxxxx2" AZURE_STORAGE_RESOURCE_GROUP="xxxxxx"

after this I did run azd up command and it did give me the following error : ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details: InvalidTemplateDeployment: The template deployment 'openai' is not valid according to the validation procedure. The tracking id is '6e6d52c4-f791-42a3-a3d5-2656e962f6ca'. See inner errors for details. CannotChangeDeploymentModel: The model of deployment cannot be changed.

Any log messages given by the failure

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details: InvalidTemplateDeployment: The template deployment 'openai' is not valid according to the validation procedure. The tracking id is '6e6d52c4-f791-42a3-a3d5-2656e962f6ca'. See inner errors for details. CannotChangeDeploymentModel: The model of deployment cannot be changed.

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?) Windows 7

azd version?

run azd version and copy paste here. 1.5.0

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

pamelafox commented 8 months ago

Hm, are your existing deployments using an older model version? See https://github.com/Azure-Samples/azure-search-openai-demo/blob/0b8724ad761c1d93489ff254bc3a66ad3fceedf2/infra/main.bicep#L71 for what we set as the version.

ayoubazaouyat commented 8 months ago

no I just set it to the name of the deployment as it wasnt named chat in my existing resources. I am using GPT-4 32k model