dify icon indicating copy to clipboard operation
dify copied to clipboard

core.model_runtime.errors.validate.CredentialsValidateFailedError: Internal Server Error

Open engchina opened this issue 10 months ago • 2 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

add a Speech2text model,

Image

it shows successfully, but the model was not added

Image

✔️ Expected Behavior

The model should be added

❌ Actual Behavior

The model was not added

engchina avatar Mar 19 '25 03:03 engchina

I found a similar open issue related to the SPEECH2TEXT model not being recognized after upgrading to Dify 1.0. The suggested solution involves several steps:

  1. Verify Model Configuration: Ensure that the SPEECH2TEXT model is correctly configured in the GPUstack provider settings, including the model type, name, server URL, and API key.

  2. Check Provider YAML File: Make sure the provider's YAML configuration file includes the SPEECH2TEXT model type. The YAML file should define the supported model types and ensure that SPEECH2TEXT is listed.

  3. Review Code Changes: Look into any changes made in Dify 1.0 that might affect model recognition or credential validation for the GPUstack provider. This might involve checking the model_provider_factory and plugin_model_manager for any updates related to model types.

  4. Update Model Definitions: If there are predefined models, ensure that the YAML files for these models are updated according to the new schema or requirements introduced in Dify 1.0 [1].

Additionally, there was a closed issue where the speech2text model was missing from the model listing, which was resolved by a pull request that fixed the schema for the gpustack speech-to-text model [2]. You might want to check if this fix is applicable to your situation.

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] avatar Mar 19 '25 03:03 dosubot[bot]

What's your plugin version? Please provide the container logs of the internal server error as well.

crazywoola avatar Mar 19 '25 03:03 crazywoola

Hi, @engchina. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Bug in Dify version 1.0.1 with Speech2text model in Docker setup.
  • Error encountered: "CredentialsValidateFailedError: Internal Server Error."
  • Suggested solutions include verifying model configuration and updating model definitions.
  • Additional information requested: plugin version and container logs.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of Dify. If so, you can keep the discussion open by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Apr 19 '25 16:04 dosubot[bot]