Why is there no Thinking content in the output of Openrouter's DeepSeek-r1 model? #8190

Closed
opened 2026-02-21 18:24:23 -05:00 by yindo · 7 comments
Owner

Originally created by @lichao4Java on GitHub (Feb 12, 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

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Why is there no Thinking content in the output of Openrouter's DeepSeek-r1 model?
But will the official and Novita's deepseek-r1 output the Thinking tag?

✔️ Expected Behavior

output the Thinking tag

Actual Behavior

Image

Originally created by @lichao4Java on GitHub (Feb 12, 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 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Why is there no Thinking content in the output of Openrouter's DeepSeek-r1 model? But will the official and Novita's deepseek-r1 output the Thinking tag? ### ✔️ Expected Behavior output the Thinking tag ### ❌ Actual Behavior ![Image](https://github.com/user-attachments/assets/51d40b75-fa36-4cae-a88d-514a9d542919)
yindo added the 🐞 bug🌚 invalid labels 2026-02-21 18:24:23 -05:00
yindo closed this issue 2026-02-21 18:24:23 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 12, 2025):

I found two similar discussions that might be relevant to your issue:

  1. How to put the thinking process into thinking in DeepSeek R1 deployment in xinference, which is currently unsolved [1].
  2. Using DeepSeek's API, the thought process of DeepSeek cannot be displayed, which is also unsolved [2].

These discussions address similar concerns about the absence of the "Thinking" content in the output of the DeepSeek-r1 model. You might find additional insights or potential solutions by following these threads.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report

@dosubot[bot] commented on GitHub (Feb 12, 2025): <!-- Answer --> I found two similar discussions that might be relevant to your issue: 1. [How to put the thinking process into thinking in DeepSeek R1 deployment in xinference](https://github.com/langgenius/dify/discussions/13444), which is currently unsolved <sup>[[1]](https://github.com/langgenius/dify/discussions/13444)</sup>. 2. [Using DeepSeek's API, the thought process of DeepSeek cannot be displayed](https://github.com/langgenius/dify/discussions/13125), which is also unsolved <sup>[[2]](https://github.com/langgenius/dify/discussions/13125)</sup>. These discussions address similar concerns about the absence of the "Thinking" content in the output of the DeepSeek-r1 model. You might find additional insights or potential solutions by following these threads. <!-- 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/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=other) | [Bug Report](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=bug_report)</sup>
Author
Owner

@crazywoola commented on GitHub (Feb 12, 2025):

You need to check the original context of the result to see if there is a think tag.

@crazywoola commented on GitHub (Feb 12, 2025): You need to check the original context of the result to see if there is a think tag.
Author
Owner

@lichao4Java commented on GitHub (Feb 12, 2025):

我发现了两个可能与您的问题相关的类似讨论:

  1. 如何把思考过程放到xinference中的DeepSeek R1部署中的思考中,目前尚未解决[1]
  2. 使用DeepSeek的API,无法展示DeepSeek的思维过程,这也是一个未解决的问题[2]

这些讨论解决了类似的担忧,即 DeepSeek-r1 模型输出中缺少“思考”内容。通过关注这些主题,您可能会发现更多见解或潜在解决方案。

要继续与Dosu交谈,请提及@dosu

帮助 Dosu 学习!提供反馈:很好的回应|不相关的答案|不正确的来源|太冗长|幻觉|其他|错误报告

But the latest version of dify official and novita's supplier deepseek-r1 will output the Thinking tag?

@lichao4Java commented on GitHub (Feb 12, 2025): > 我发现了两个可能与您的问题相关的类似讨论: > > 1. [如何把思考过程放到xinference中的DeepSeek R1部署中的思考中](https://github.com/langgenius/dify/discussions/13444),目前尚未解决[[1]](https://github.com/langgenius/dify/discussions/13444)。 > 2. [使用DeepSeek的API,无法展示DeepSeek的思维过程](https://github.com/langgenius/dify/discussions/13125),这也是一个未解决的问题[[2]](https://github.com/langgenius/dify/discussions/13125)。 > > 这些讨论解决了类似的担忧,即 DeepSeek-r1 模型输出中缺少“思考”内容。通过关注这些主题,您可能会发现更多见解或潜在解决方案。 > > _[要继续与Dosu](https://dosu.dev)交谈,请提及[@dosu](https://github.com/dosu)。_ > > 帮助 Dosu 学习!提供反馈:[很好的回应](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=great_response)|[不相关的答案](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=irrelevant_answer)|[不正确的来源](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=incorrect_sources)|[太冗长](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=too_verbose)|[幻觉](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=hallucination)|[其他](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=other)|[错误报告](https://app.dosu.dev/response-feedback/4ba4206e-da0a-4393-977b-18e9fba6ff3b?feedback_type=bug_report) But the latest version of dify official and novita's supplier deepseek-r1 will output the Thinking tag?
Author
Owner

@lichao4Java commented on GitHub (Feb 12, 2025):

你需要检查结果的原始上下文,看看是否有think标签。

Image

novita's supplier deepseek-r1 will output the Thinking tag。 but Openrouter's deepseek-r1 no Thinking content 。

@lichao4Java commented on GitHub (Feb 12, 2025): > 你需要检查结果的原始上下文,看看是否有think标签。 ![Image](https://github.com/user-attachments/assets/5cab62cf-2374-48d4-a5ec-957ce37206be) novita's supplier deepseek-r1 will output the Thinking tag。 but Openrouter's deepseek-r1 no Thinking content 。
Author
Owner

@crazywoola commented on GitHub (Feb 12, 2025):

See related commits in https://github.com/langgenius/dify/releases/tag/0.15.3

Not all of the think tag content are supported at this moment, and we move it to frontend in feat: improve think content display (#13431).

I think we need to handle this later once the API is stable for both providers.

@crazywoola commented on GitHub (Feb 12, 2025): See related commits in https://github.com/langgenius/dify/releases/tag/0.15.3 Not all of the think tag content are supported at this moment, and we move it to frontend in feat: improve think content display (#13431). I think we need to handle this later once the API is stable for both providers.
Author
Owner

@Capricorn0010 commented on GitHub (Feb 14, 2025):

使用阿里云的千问接入deepseek的R1模型也是缺失思考过程

Image
@Capricorn0010 commented on GitHub (Feb 14, 2025): 使用阿里云的千问接入deepseek的R1模型也是缺失思考过程 <img width="718" alt="Image" src="https://github.com/user-attachments/assets/37f42dfc-3764-4153-8505-2ca3b2f94bdf" />
Author
Owner

@lintianzxcvbnm commented on GitHub (Mar 10, 2025):

加1,我本地部署的deepseek填入localai和deepseek的模型供应商那里都缺失think过程,其他途径调用是有think过程的

@lintianzxcvbnm commented on GitHub (Mar 10, 2025): 加1,我本地部署的deepseek填入localai和deepseek的模型供应商那里都缺失think过程,其他途径调用是有think过程的
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8190