[bug] OpenAI-API-compatible Unable to add custom model #124

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

Originally created by @reatang on GitHub (Mar 26, 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 Dify issues & Dify Official Plugins, 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.1.3

Plugin version

0.0.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Error log

2025-03-26 22:56:01.534 ERROR [Dummy-1] [models.py:162] - Failed to save model credentials, tenant_id: e3471846-bffc-4cf8-b3c5-5544c1df219a, model: novita/deepseek-v3, model_type: llm,
Traceback (most recent call last):,
File "/app/api/controllers/console/workspace/models.py", line 154, in post,
model_provider_service.save_model_credentials(,
File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials,
provider_configuration.add_or_update_custom_model_credentials(,
File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials,
provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^,
File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate,
credentials = model_provider_factory.model_credentials_validate(,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^,
File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate,
self.plugin_model_manager.validate_model_credentials(,
File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials,
for resp in response:,
^^^^^^^^,
File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream,
self._handle_plugin_daemon_error(error.error_type, error.message),
File "/app/api/core/plugin/manager/base.py", line 219, in _handle_plugin_daemon_error,
raise CredentialsValidateFailedError(error_object.get("message")),
core.model_runtime.errors.validate.CredentialsValidateFailedError: Credentials validation failed with status code 404

Originally created by @reatang on GitHub (Mar 26, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.1.3 ### Plugin version 0.0.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/ec34a94e-7458-480d-82ab-92f8d8fb9503) ### ✔️ Error log 2025-03-26 22:56:01.534 ERROR [Dummy-1] [models.py:162] - Failed to save model credentials, tenant_id: e3471846-bffc-4cf8-b3c5-5544c1df219a, model: novita/deepseek-v3, model_type: llm, Traceback (most recent call last):, File "/app/api/controllers/console/workspace/models.py", line 154, in post, model_provider_service.save_model_credentials(, File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials, provider_configuration.add_or_update_custom_model_credentials(, File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials, provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate, credentials = model_provider_factory.model_credentials_validate(, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^, File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate, self.plugin_model_manager.validate_model_credentials(, File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials, for resp in response:, ^^^^^^^^, File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream, self._handle_plugin_daemon_error(error.error_type, error.message), File "/app/api/core/plugin/manager/base.py", line 219, in _handle_plugin_daemon_error, raise CredentialsValidateFailedError(error_object.get("message")), core.model_runtime.errors.validate.CredentialsValidateFailedError: Credentials validation failed with status code 404
yindo added the bug label 2026-02-16 10:18:09 -05:00
yindo closed this issue 2026-02-16 10:18:09 -05:00
Author
Owner

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

Hi, @reatang. 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 a bug in Dify v1.1.3 (plugin 0.0.10, self-hosted via Docker) related to adding a custom OpenAI-API-compatible model "novita/deepseek-v3" of type "llm."
  • The error occurs during model credentials validation, which prevents the credentials from being saved.
  • There has been no further activity or comments on this issue since it was opened.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 16, 2025): Hi, @reatang. 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 a bug in Dify v1.1.3 (plugin 0.0.10, self-hosted via Docker) related to adding a custom OpenAI-API-compatible model "novita/deepseek-v3" of type "llm." - The error occurs during model credentials validation, which prevents the credentials from being saved. - There has been no further activity or comments on this issue since it was opened. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If I do not hear back within 5 days, I will automatically close this issue. 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#124