Suddenly I can't access the Deepseek R1 model, but V3 can! #12375

Closed
opened 2026-02-21 19:07:07 -05:00 by yindo · 2 comments
Owner

Originally created by @longgebiu on GitHub (Mar 31, 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

1.1.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

The same problem exists in cloud.dedify, it can't be called, but V3 is fine, I've checked the apiKey and it's fine.
Image

✔️ Expected Behavior

Suddenly it doesn't work, but V3 does work
Image

Actual Behavior

No response

Originally created by @longgebiu on GitHub (Mar 31, 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 [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 1.1.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce The same problem exists in cloud.dedify, it can't be called, but V3 is fine, I've checked the apiKey and it's fine. <img width="402" alt="Image" src="https://github.com/user-attachments/assets/4d75a157-590d-4751-a465-3c5976dc1ab1" /> ### ✔️ Expected Behavior Suddenly it doesn't work, but V3 does work <img width="402" alt="Image" src="https://github.com/user-attachments/assets/7f309965-08ee-4727-aa0d-1f1222b7e7ab" /> ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 19:07:07 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 31, 2025):

Hello, @longgebiu! I'm here to assist you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together!

The issue you're experiencing with the Deepseek R1 model is likely due to its limitation in supporting only 'user' and 'assistant' roles, and not 'system' roles. This results in a PluginInvokeError with status code 400 indicating an "invalid_request_error." To resolve this, ensure that your message sequence only includes user and assistant roles, and remove any system prompts when using the Deepseek R1 model [1][2].

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] commented on GitHub (Mar 31, 2025): <!-- Greeting --> Hello, @longgebiu! I'm here to assist you with bug fixes, answer questions, and guide you on becoming a contributor. Let's tackle this issue together! <!-- Answer --> The issue you're experiencing with the Deepseek R1 model is likely due to its limitation in supporting only 'user' and 'assistant' roles, and not 'system' roles. This results in a `PluginInvokeError` with status code 400 indicating an "invalid_request_error." To resolve this, ensure that your message sequence only includes user and assistant roles, and remove any system prompts when using the Deepseek R1 model <sup>[[1]](https://github.com/langgenius/dify/issues/15614)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/16860)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4ee631bf-ee8c-476a-92c2-1f8a01eb1b39?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 31, 2025):

The error message is pretty straightforward. Please read their docs.

Reasoning models usually do not have system role.

@crazywoola commented on GitHub (Mar 31, 2025): The error message is pretty straightforward. Please read their docs. Reasoning models usually do not have `system` role.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12375