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.88k stars 4.03k forks source link

Deployment Error Details: DuplicatedDeploymentForSameModel: The deployment 'chat' has the same model with an existing deployment 'Hodel-01'. Only 1 deployment is allowed for the same model. #178

Open DevOps-zhuang opened 1 year ago

DevOps-zhuang commented 1 year ago

Please provide us with the following information:

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

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

Minimal steps to reproduce

Use existing resources:

I just followed below steps for Use existing resources sections:

  1. Run azd env set AZURE_OPENAI_SERVICE {Name of existing OpenAI service}
  2. Run azd env set AZURE_OPENAI_RESOURCE_GROUP {Name of existing resource group that OpenAI service is provisioned to}
  3. Run azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT {Name of existing ChatGPT deployment}. Only needed if your ChatGPT deployment is not the default 'chat'.
  4. Run azd env set AZURE_OPENAI_GPT_DEPLOYMENT {Name of existing GPT deployment}. Only needed if your ChatGPT deployment is not the default 'davinci'.
  5. Run azd up

Any log messages given by the failure

ERROR: deployment failed: error deploying infrastructure: deploying to subscription:

Deployment Error Details: DuplicatedDeploymentForSameModel: The deployment 'chat' has the same model with an existing deployment 'Hodel-01'. Only 1 deployment is allowed for the same model.

Expected/desired behavior

the deployment will use the AZURE_OPENAI_CHATGPT_DEPLOYMENT parameters I set by running azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT Hodel-01. not trying to create a new gpt 3.5 model against current OpenAI, it will fail.

OS and Version?

Windows 11

Versions

Mention any other details that might be useful

so the issue is that the deplyment doesn't use the Hodel-01 I already set for AZURE_OPENAI_CHATGPT_DEPLOYMENT, it try to create a new one, which is not allowed by current Azure OpenAI policy. how to fix it? thanks.


Thanks! We'll be in touch soon.

nickroseth commented 1 year ago

having the same issue I use the parameters but it keeps trying to set up a new instance

lucazav commented 1 year ago

Same issue here. Is there a different configuration to use an already deployed model?

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.