Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When adding Deepseek as a model provider, it throws an error: "Credentials validation failed: JSON decode error" #14062

Open
5 tasks done
luckymeet opened this issue Feb 20, 2025 · 3 comments
Labels
🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited

Comments

@luckymeet
Copy link

luckymeet commented Feb 20, 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

v0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When adding Deepseek as a model provider, it throws an error: "Credentials validation failed: JSON decode error"

Image

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

@dosubot dosubot bot added the 🐞 bug Something isn't working label Feb 20, 2025
Copy link

dosubot bot commented Feb 20, 2025

Hey there, @luckymeet! I'm here to help you with bug reports, questions, and becoming a contributor. Let's tackle this issue together!

I found a similar closed issue that might be relevant to your problem. The issue suggested checking the following:

  1. Check Credentials Format: Ensure that the credentials dictionary is correctly formatted and contains all necessary fields. For DeepSeek, the required field is api_key, and there is an optional endpoint_url field for a custom API endpoint URL.

  2. Verify Credentials: Make sure the api_key is up-to-date and has the necessary permissions for accessing the DeepSeek service.

  3. Default Endpoint URL: If you are using a custom endpoint_url, verify that it is correct. The default value is "https://api.deepseek.com".

If the credentials are correct and the error persists, you may need to check with the service provider to ensure there are no issues with the account or service status [1].

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

@crazywoola crazywoola added the 🤔 cant-reproduce We can not reproduce it or the information is limited label Feb 20, 2025
@tonyho
Copy link

tonyho commented Feb 20, 2025

I meet this error too when using the volcengine(火山引擎) deepseek R1.

@Joey-xx
Copy link

Joey-xx commented Feb 21, 2025

I meet this error too when using the volcengine(火山引擎) deepseek R1.

update to 0.15.3 and set the stream delimiter as '\r\n\r\n' if you use OpenAI-API-compatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🤔 cant-reproduce We can not reproduce it or the information is limited
Projects
None yet
Development

No branches or pull requests

4 participants