Azure openai model keeps showing not found #8935

Closed
opened 2026-02-21 18:28:42 -05:00 by yindo · 9 comments
Owner

Originally created by @rydensun on GitHub (Mar 3, 2025).

Originally assigned to: @crazywoola on GitHub.

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

I've set up all required fields of Azure, but when I clicked Save.
a "not found" toast is always showing.
I deployed the resource a hour ago, and it kept saying not found.
Please check this bug.

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @rydensun on GitHub (Mar 3, 2025). Originally assigned to: @crazywoola on GitHub. ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce I've set up all required fields of Azure, but when I clicked Save. a "not found" toast is always showing. I deployed the resource a hour ago, and it kept saying not found. Please check this bug. ![Image](https://github.com/user-attachments/assets/7c9bd8e5-40a0-4274-b9a8-4cb63e15cd7b) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bugcloud labels 2026-02-21 18:28:42 -05:00
yindo closed this issue 2026-02-21 18:28:42 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 3, 2025):

Hey @rydensun! 👋 I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's squash those bugs together!

I found a similar discussion regarding the 'DeploymentNotFound' error when configuring Azure OpenAI models in Dify. The discussion suggests that the default model might be set incorrectly. In a closed issue, the solution was to manually set the model to gpt-35-turbo instead of the default text-davinci-003 in the prompt configuration [1].

Additionally, ensure that the Azure OpenAI model is successfully deployed and that the deployment name matches exactly as described in the Azure portal. Sometimes, there might be a delay in the deployment becoming available, so waiting a bit longer might help if the deployment was recent.

If the issue persists, double-check the configuration settings in the api/core/hosting_configuration.py file and ensure that the HOSTED_AZURE_OPENAI_API_KEY and HOSTED_AZURE_OPENAI_API_BASE are correctly set [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 3, 2025): <!-- Greeting --> Hey @rydensun! 👋 I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's squash those bugs together! <!-- Answer --> I found a similar discussion regarding the 'DeploymentNotFound' error when configuring Azure OpenAI models in Dify. The discussion suggests that the default model might be set incorrectly. In a closed issue, the solution was to manually set the model to `gpt-35-turbo` instead of the default `text-davinci-003` in the prompt configuration <sup>[[1]](https://github.com/langgenius/dify/issues/610)</sup>. Additionally, ensure that the Azure OpenAI model is successfully deployed and that the deployment name matches exactly as described in the Azure portal. Sometimes, there might be a delay in the deployment becoming available, so waiting a bit longer might help if the deployment was recent. If the issue persists, double-check the configuration settings in the `api/core/hosting_configuration.py` file and ensure that the `HOSTED_AZURE_OPENAI_API_KEY` and `HOSTED_AZURE_OPENAI_API_BASE` are correctly set <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/hosting_configuration.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/abecf11e-75e5-45a3-9819-fc3ee9ad8ccc?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 3, 2025):

What's your version?

Image
@crazywoola commented on GitHub (Mar 3, 2025): What's your version? <img width="1185" alt="Image" src="https://github.com/user-attachments/assets/0db5a18a-1169-47d5-b69d-6e4606d4aef4" />
Author
Owner

@rydensun commented on GitHub (Mar 3, 2025):

I installed the 0.04 version.

Image

What's your version?

Image
@rydensun commented on GitHub (Mar 3, 2025): I installed the 0.04 version. ![Image](https://github.com/user-attachments/assets/c0c66ba8-1942-4429-ba1f-ccfff69f2b8a) > What's your version? > > <img alt="Image" width="1185" src="https://private-user-images.githubusercontent.com/100913391/418596951-0db5a18a-1169-47d5-b69d-6e4606d4aef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDEwMTI4MTYsIm5iZiI6MTc0MTAxMjUxNiwicGF0aCI6Ii8xMDA5MTMzOTEvNDE4NTk2OTUxLTBkYjVhMThhLTExNjktNDdkNS1iNjlkLTZlNDYwNmQ0YWVmNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMzAzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDMwM1QxNDM1MTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lYjAyM2E0YTMwNTU2YWZkYmNjNTM0YzI3Y2UyNDk0ZDY5MjhkN2Q4ODAyZTkzOTI2MjQ3MzFhYTUzYzQ5NTcxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.thf7dJHHWnS6xZfeFrjG3iAPkyRTdCQmELM2HEx5ja0">
Author
Owner

@rydensun commented on GitHub (Mar 3, 2025):

@dosu @crazywoola
I've checked every parameters as the same as given by the Azure.
But the problem persists.
My configuration is this:

Image

@rydensun commented on GitHub (Mar 3, 2025): @dosu @crazywoola I've checked every parameters as the same as given by the Azure. But the problem persists. My configuration is this: ![Image](https://github.com/user-attachments/assets/6b931b9e-87a3-4ff2-9939-d544dc4c8b53)
Author
Owner

@dosubot[bot] commented on GitHub (Mar 3, 2025):

Ensure that the deployment name and API endpoint URL exactly match the details provided in the Azure portal. The error might be due to a mismatch in these configurations. Also, verify that the base model name is correct; it should be compatible with the Azure OpenAI model you are using. The base model "gpt-4o-mini" might not be supported, so try using "gpt-35-turbo" instead, as it is a known compatible model [1]. Additionally, ensure that the API version "2024-12-01-preview" is supported by your Azure OpenAI deployment. If the issue persists, double-check the encryption and storage settings for the API key, as Dify uses PKCS1_OAEP technology for this purpose [2].

A maintainer has already been looped in, so they might provide further assistance if needed.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 3, 2025): <!-- Answer --> Ensure that the deployment name and API endpoint URL exactly match the details provided in the Azure portal. The error might be due to a mismatch in these configurations. Also, verify that the base model name is correct; it should be compatible with the Azure OpenAI model you are using. The base model "gpt-4o-mini" might not be supported, so try using "gpt-35-turbo" instead, as it is a known compatible model <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/hosting_configuration.py)</sup>. Additionally, ensure that the API version "2024-12-01-preview" is supported by your Azure OpenAI deployment. If the issue persists, double-check the encryption and storage settings for the API key, as Dify uses PKCS1_OAEP technology for this purpose <sup>[[2]](https://github.com/langgenius/dify/issues/14074)</sup>. A maintainer has already been looped in, so they might provide further assistance if needed. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/079f22bb-189f-430a-b8b7-4649f0ab9ba8?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 3, 2025):

Can you try 0.0.3 instead?

@crazywoola commented on GitHub (Mar 3, 2025): Can you try 0.0.3 instead?
Author
Owner

@rydensun commented on GitHub (Mar 3, 2025):

Can you try 0.0.3 instead?

The first time I tried is 0.03, and I saw your reply then I updated to 0.0.4.
Both versions don't work, same problem.

@rydensun commented on GitHub (Mar 3, 2025): > Can you try 0.0.3 instead? The first time I tried is 0.03, and I saw your reply then I updated to 0.0.4. Both versions don't work, same problem.
Author
Owner

@rydensun commented on GitHub (Mar 5, 2025):

Really need to solve this asap...as my free 200 messages are used out....

@rydensun commented on GitHub (Mar 5, 2025): Really need to solve this asap...as my free 200 messages are used out....
Author
Owner

@dosubot[bot] commented on GitHub (Apr 5, 2025):

Hi, @rydensun. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a "not found" error with the Azure OpenAI model despite correct setup.
  • I suggested checking model configuration and ensuring deployment details match Azure portal.
  • You confirmed trying versions 0.0.3 and 0.0.4 without success.
  • I advised verifying API version and encryption settings.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Apr 5, 2025): Hi, @rydensun. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You reported a "not found" error with the Azure OpenAI model despite correct setup. - I suggested checking model configuration and ensuring deployment details match Azure portal. - You confirmed trying versions 0.0.3 and 0.0.4 without success. - I advised verifying API version and encryption settings. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting here. - If there is no further activity, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8935