1.3.0 openai_api_compatible add failed #223

Closed
opened 2026-02-16 10:18:30 -05:00 by yindo · 3 comments
Owner

Originally created by @suwubee on GitHub (Apr 24, 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.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

new install, add model of openai_api_compatible.

✔️ Expected Behavior

add model failed

Actual Behavior

responce, but no model display.
result:"success"

Image

Image

Originally created by @suwubee on GitHub (Apr 24, 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.3.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce new install, add model of openai_api_compatible. ### ✔️ Expected Behavior add model failed ### ❌ Actual Behavior responce, but no model display. ` result:"success" ` ![Image](https://github.com/user-attachments/assets/02fb4fa8-a9dd-47ce-b61b-6021a9cade2c) ![Image](https://github.com/user-attachments/assets/02746245-7e72-4f2a-8de6-02b63e8119af)
yindo closed this issue 2026-02-16 10:18:30 -05:00
Author
Owner

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

Hello @suwubee! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you in becoming a contributor. I'm here while you wait for a human maintainer. How can I assist you today?

I found a similar closed issue titled "openai_api_compatible_0.0.7.difypkg,cannot add models" [1]. However, no solution was found in the comments of that issue.

For your current issue with Dify version 1.3.0, when adding an OpenAI API compatible model in a self-hosted setup, ensure that you have followed these steps:

  1. Access the Model Provider Settings:

    • Navigate to the Dify platform's Settings and select Model Provider.
  2. Obtain API Key:

  3. Connect the Model Provider:

    • Add the OpenAI API key in the Model Provider settings. Dify should automatically connect to all models provided by OpenAI once the API key is set.
  4. Set Default Model:

    • Configure the default inference model for your application under Settings > Model Provider.
  5. Verify Configuration Files:

    • Check your .env file for necessary configurations, especially if you are in an offline environment. Ensure settings like MARKETPLACE_ENABLED and MARKETPLACE_API_URL are correctly configured [2].

If the model still does not display, you might want to check the logs for any errors or warnings that could provide more insight into the issue.

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 24, 2025): <!-- Greeting --> Hello @suwubee! I'm [Dosu](https://dosu.dev), your friendly bot here to help you solve bugs, answer questions, and guide you in becoming a contributor. I'm here while you wait for a human maintainer. How can I assist you today? <!-- Answer --> I found a similar closed issue titled "openai_api_compatible_0.0.7.difypkg,cannot add models" <sup>[[1]](https://github.com/langgenius/dify/issues/15715)</sup>. However, no solution was found in the comments of that issue. For your current issue with Dify version 1.3.0, when adding an OpenAI API compatible model in a self-hosted setup, ensure that you have followed these steps: 1. **Access the Model Provider Settings:** - Navigate to the Dify platform's **Settings** and select **Model Provider**. 2. **Obtain API Key:** - Ensure you have obtained an API key from the [OpenAI platform](https://platform.openai.com/account/api-keys). 3. **Connect the Model Provider:** - Add the OpenAI API key in the **Model Provider** settings. Dify should automatically connect to all models provided by OpenAI once the API key is set. 4. **Set Default Model:** - Configure the default inference model for your application under **Settings > Model Provider**. 5. **Verify Configuration Files:** - Check your `.env` file for necessary configurations, especially if you are in an offline environment. Ensure settings like `MARKETPLACE_ENABLED` and `MARKETPLACE_API_URL` are correctly configured <sup>[[2]](https://github.com/langgenius/dify/issues/17990)</sup>. If the model still does not display, you might want to check the logs for any errors or warnings that could provide more insight into the issue. <!-- 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/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/02eb4997-e76b-499c-9597-6ddf4f1c9173?feedback_type=other)</sup>
Author
Owner

@connor-john-x commented on GitHub (May 7, 2025):

Any progress made?

@connor-john-x commented on GitHub (May 7, 2025): Any progress made?
Author
Owner

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

Hi, @suwubee. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that in Dify version 1.3.0 self-hosted via Docker, adding the openai_api_compatible model returns a success response but the model does not appear.
  • I suggested checking API key setup, model provider settings, and configuration files like .env.
  • Similar past issues were referenced but no solution was found.
  • Another user asked about progress, but no maintainer response or resolution has been provided yet.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion open.
  • If I don’t hear back within 5 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 19, 2025): Hi, @suwubee. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that in Dify version 1.3.0 self-hosted via Docker, adding the openai_api_compatible model returns a success response but the model does not appear. - I suggested checking API key setup, model provider settings, and configuration files like .env. - Similar past issues were referenced but no solution was found. - Another user asked about progress, but no maintainer response or resolution has been provided yet. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here to keep the discussion open. - If I don’t hear back within 5 days, this issue will be automatically closed. 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-official-plugins#223