"Add Model" is not adding models to the model list. #6043

Closed
opened 2026-02-21 18:13:49 -05:00 by yindo · 1 comment
Owner

Originally created by @taowang1993 on GitHub (Oct 11, 2024).

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

0.9.1

Cloud or Self Hosted

Cloud, Self Hosted (Docker)

Steps to reproduce

The "Add Model" feature does not work.

I tried many many times.

I expect it will add a custom model to the model list, but it doesn't.

image

The docs says predefined-model + customizable-model can coexist.

Does that mean I need to use the same base url and api key for predefined and custom?

https://docs.dify.ai/guides/model-configuration/new-provider

The reason I ask is that using different base url and api key don't seem to work.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @taowang1993 on GitHub (Oct 11, 2024). ### 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 0.9.1 ### Cloud or Self Hosted Cloud, Self Hosted (Docker) ### Steps to reproduce The "Add Model" feature does not work. I tried many many times. I expect it will add a custom model to the model list, but it doesn't. <img width="1453" alt="image" src="https://github.com/user-attachments/assets/05e46c21-d543-4b59-84cf-4c746f05675a"> The docs says predefined-model + customizable-model can coexist. Does that mean I need to use the same base url and api key for predefined and custom? https://docs.dify.ai/guides/model-configuration/new-provider The reason I ask is that using different base url and api key don't seem to work. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:13:49 -05:00
yindo closed this issue 2026-02-21 18:13:49 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 11, 2024):

It seems like you're encountering an issue with adding a custom model in Dify. Here are some relevant points and solutions that might help:

  1. Predefined vs. Custom Models: For predefined models, you only need unified provider credentials (a single API key and base URL). For custom models, you need to configure credentials for each model, which may require different API keys or URLs. They can coexist, but they don't need to share the same base URL and API key [1][2].

  2. Steps to Add a Custom Model:

    • Create a provider YAML file according to the Provider Schema.
    • Implement the provider code and add model type modules.
    • Write and run test code to ensure everything is configured correctly [1].
  3. Similar Issues: There was a similar issue where users had trouble with model configuration. The solution involved ensuring correct proxy configuration and API base URL updates [3].

Make sure your configurations align with these guidelines, and check if there are any errors in your setup. If the problem persists, reviewing the proxy settings and API base URL might help.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 11, 2024): <!-- Answer --> It seems like you're encountering an issue with adding a custom model in Dify. Here are some relevant points and solutions that might help: 1. **Predefined vs. Custom Models**: For predefined models, you only need unified provider credentials (a single API key and base URL). For custom models, you need to configure credentials for each model, which may require different API keys or URLs. They can coexist, but they don't need to share the same base URL and API key <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/model-configuration/new-provider.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/model-configuration/README.md)</sup>. 2. **Steps to Add a Custom Model**: - Create a provider YAML file according to the Provider Schema. - Implement the provider code and add model type modules. - Write and run test code to ensure everything is configured correctly <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/model-configuration/new-provider.md)</sup>. 3. **Similar Issues**: There was a similar issue where users had trouble with model configuration. The solution involved ensuring correct proxy configuration and API base URL updates <sup>[[3]](https://github.com/langgenius/dify/issues/3332)</sup>. Make sure your configurations align with these guidelines, and check if there are any errors in your setup. If the problem persists, reviewing the proxy settings and API base URL might help. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6043