mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[bug] OpenAI-API-compatible Unable to add custom model #124
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reatang on GitHub (Mar 26, 2025).
Self Checks
Dify version
1.1.3
Plugin version
0.0.10
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ 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
@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:
Next Steps:
Thank you for your understanding and contribution!