Model Provider is null #8410

Closed
opened 2026-02-21 18:25:34 -05:00 by yindo · 4 comments
Owner

Originally created by @shawnxiao1108 on GitHub (Feb 19, 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

Version 1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Model Provider is null。

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @shawnxiao1108 on GitHub (Feb 19, 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 Version 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/8bdc769f-0134-4a95-8a5a-65b6361a00a4) Model Provider is null。 ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:25:34 -05:00
yindo closed this issue 2026-02-21 18:25:34 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 19, 2025):

Hey there, @shawnxiao1108! 👋 I'm here to help you with bug fixes, answer questions, and even guide you on how to contribute. Let's squash those bugs together!

I found a similar unsolved discussion titled "Help! can not access set up model provider" [1]. Additionally, there is an open issue titled "add model failed !!" [2], but no solution has been found in the comments.

For the "Model Provider is null" error, ensure that you have correctly configured the Model Provider settings in Dify. Here are some steps you can follow to troubleshoot:

  1. Check Model Provider Settings: Go to Settings > Model Provider and verify that all required fields are filled out correctly. Ensure that the API key from the model provider is correctly entered.

  2. Verify API Key: Make sure you have obtained a valid API key from the model provider's official website and that it is correctly configured in Dify.

  3. Review Configuration Files: Check any YAML configuration files related to the model provider to ensure they are correctly set up according to the ProviderSchema requirements.

  4. Inspect Logs for Errors: Look for any specific error messages in the logs that might indicate what is missing or misconfigured.

  5. Test the Configuration: If possible, write integration tests to verify that the model provider is correctly set up and can be invoked without errors.

If these steps do not resolve the issue, you might want to look into the specific error message generated by the ProviderNotInitializeError class, which indicates missing model provider credentials [3].

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 (Feb 19, 2025): <!-- Greeting --> Hey there, @shawnxiao1108! 👋 I'm here to help you with bug fixes, answer questions, and even guide you on how to contribute. Let's squash those bugs together! <!-- Answer --> I found a similar unsolved discussion titled "Help! can not access set up model provider" <sup>[[1]](https://github.com/langgenius/dify/discussions/10858)</sup>. Additionally, there is an open issue titled "add model failed !!" <sup>[[2]](https://github.com/langgenius/dify/issues/1958)</sup>, but no solution has been found in the comments. For the "Model Provider is null" error, ensure that you have correctly configured the Model Provider settings in Dify. Here are some steps you can follow to troubleshoot: 1. **Check Model Provider Settings**: Go to **Settings > Model Provider** and verify that all required fields are filled out correctly. Ensure that the API key from the model provider is correctly entered. 2. **Verify API Key**: Make sure you have obtained a valid API key from the model provider's official website and that it is correctly configured in Dify. 3. **Review Configuration Files**: Check any YAML configuration files related to the model provider to ensure they are correctly set up according to the ProviderSchema requirements. 4. **Inspect Logs for Errors**: Look for any specific error messages in the logs that might indicate what is missing or misconfigured. 5. **Test the Configuration**: If possible, write integration tests to verify that the model provider is correctly set up and can be invoked without errors. If these steps do not resolve the issue, you might want to look into the specific error message generated by the `ProviderNotInitializeError` class, which indicates missing model provider credentials <sup>[[3]](https://github.com/langgenius/dify/blob/main/api/controllers/console/app/error.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/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a17f9572-4353-4be6-9efa-ff83f22dbb9e?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Feb 19, 2025):

This version hasn't been released yet. Please do not use the latest branch.

@crazywoola commented on GitHub (Feb 19, 2025): This version hasn't been released yet. Please do not use the latest branch.
Author
Owner

@shawnxiao1108 commented on GitHub (Feb 19, 2025):

This version hasn't been released yet. Please do not use the latest branch.

Which version do you recommend?

@shawnxiao1108 commented on GitHub (Feb 19, 2025): > This version hasn't been released yet. Please do not use the latest branch. Which version do you recommend?
Author
Owner

@crazywoola commented on GitHub (Feb 19, 2025):

This version hasn't been released yet. Please do not use the latest branch.

Which version do you recommend?

v0.15.3 Checkout to that tag.

@crazywoola commented on GitHub (Feb 19, 2025): > > This version hasn't been released yet. Please do not use the latest branch. > > Which version do you recommend? v0.15.3 Checkout to that tag.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8410