Use Azure OpenAPI Models can save success, but when i use the model,return "Incorrect API key provided" #194

Closed
opened 2026-02-16 10:18:24 -05:00 by yindo · 1 comment
Owner

Originally created by @sxzj on GitHub (Apr 14, 2025).

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.13

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

here is my config Image,and i use it

Image i want to check the request but failed

Image

Image

✔️ Expected Behavior

i need help to handle the problem,thanks

Actual Behavior

No response

Originally created by @sxzj on GitHub (Apr 14, 2025). ### 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.13 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce here is my config ![Image](https://github.com/user-attachments/assets/66977be6-ffcf-4bbd-b1e8-f9f113140b71),and i use it ![Image](https://github.com/user-attachments/assets/9f9f42ff-bb70-4c7b-a378-24b7a9a6b01c) i want to check the request but failed ![Image](https://github.com/user-attachments/assets/74a43ef7-4c38-406b-b35e-b2ed1a3d590c) ![Image](https://github.com/user-attachments/assets/31e74a85-8bc8-45fe-976f-f01efb6512c1) ### ✔️ Expected Behavior i need help to handle the problem,thanks ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-16 10:18:24 -05:00
Author
Owner

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

Hello @sxzj! I'm Dosu, a bot here to help you with bugs, questions, and contributing. I'm ready to assist you while you wait for a human maintainer. Let's tackle that issue together!

I found some similar discussions and issues that might be relevant to your problem:

  1. bind openai api key err - This discussion is still open and might contain useful insights related to API key issues.
  2. Incorrect Api Key Provided - This discussion is also open and deals with similar API key problems.
  3. Help: I attempted to add my OpenAI key to my self-hosted Dify but was unsuccessful. - This is another open discussion that might provide some guidance.

A common solution suggested in similar cases is to refresh the page, change the model and API key, and avoid altering other parameters. This approach might help prevent issues related to API key input, such as unknown characters being added [1].

Additionally, ensure that the API key is correctly formatted and that there are no extra spaces or characters. If the problem persists, you might want to verify the permissions and quota associated with your API key, as these can also lead to such errors.

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 (Apr 14, 2025): <!-- Greeting --> Hello @sxzj! I'm [Dosu](https://dosu.dev), a bot here to help you with bugs, questions, and contributing. I'm ready to assist you while you wait for a human maintainer. Let's tackle that issue together! <!-- Answer --> I found some similar discussions and issues that might be relevant to your problem: 1. [bind openai api key err](https://github.com/langgenius/dify/discussions/17865) - This discussion is still open and might contain useful insights related to API key issues. 2. [Incorrect Api Key Provided](https://github.com/langgenius/dify/discussions/14172) - This discussion is also open and deals with similar API key problems. 3. [Help: I attempted to add my OpenAI key to my self-hosted Dify but was unsuccessful.](https://github.com/langgenius/dify/discussions/9383) - This is another open discussion that might provide some guidance. A common solution suggested in similar cases is to refresh the page, change the model and API key, and avoid altering other parameters. This approach might help prevent issues related to API key input, such as unknown characters being added <sup>[[1]](https://github.com/langgenius/dify/issues/12767)</sup>. Additionally, ensure that the API key is correctly formatted and that there are no extra spaces or characters. If the problem persists, you might want to verify the permissions and quota associated with your API key, as these can also lead to such errors. <!-- 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/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/367e018e-64e2-4e9a-aa5f-e071ba8411a6?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#194