The final part of the answer got confused with the thought process #975

Open
opened 2026-02-16 10:21:09 -05:00 by yindo · 1 comment
Owner

Originally created by @15171452351 on GitHub (Feb 12, 2026).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.12.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image From the perspective of the DeepSeek-v3.2 (INT4) model, you can see from the image that the final answer is placed inside the thought box. Then, by calling the interface, I found that the text of the final answer is preceded by the tag. Image

✔️ Expected Behavior

The final answer should be separated from the thinking process.

Actual Behavior

No separation

Originally created by @15171452351 on GitHub (Feb 12, 2026). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.12.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="610" height="399" alt="Image" src="https://github.com/user-attachments/assets/66b4ddf2-7d61-4b61-924d-ccda7a0802f9" /> <img width="617" height="294" alt="Image" src="https://github.com/user-attachments/assets/63828e7e-aaa0-40c5-9cb6-f0890bccf405" /> From the perspective of the DeepSeek-v3.2 (INT4) model, you can see from the image that the final answer is placed inside the thought box. Then, by calling the interface, I found that the text of the final answer is preceded by the </think> tag. <img width="1150" height="161" alt="Image" src="https://github.com/user-attachments/assets/fc2bdfc1-c370-4a1c-b01d-15fe6e06c2eb" /> ### ✔️ Expected Behavior The final answer should be separated from the thinking process. ### ❌ Actual Behavior No separation
yindo added the bug label 2026-02-16 10:21:09 -05:00
Author
Owner

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

This is a known issue with DeepSeek models in Dify. When using DeepSeek-V3.2 (and similar models like V3, V3.1, R1), the </think> tag is not being properly parsed, causing the final answer to appear inside the thought box rather than being separated.

Related issues:

Recent fixes that may help:

You may want to check if you're on the latest version of the DeepSeek plugin, as these fixes were merged in December 2025. If you're already on the latest version and still experiencing this, the existing issue at dify-official-plugins#2244 is tracking this problem.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Feb 12, 2026): <!-- Answer --> This is a known issue with DeepSeek models in Dify. When using DeepSeek-V3.2 (and similar models like V3, V3.1, R1), the `</think>` tag is not being properly parsed, causing the final answer to appear inside the thought box rather than being separated. **Related issues:** - [Missing content when enable thinking by DeepSeek-V3.2](https://github.com/langgenius/dify-official-plugins/issues/2244) - Reports the same problem where only `reasoning_content` is returned and final content is missing or improperly formatted - [DeepSeek R1 streaming thinking not separated](https://github.com/langgenius/dify/issues/16108) - Similar issue where thinking and main text appear in the same message **Recent fixes that may help:** - [PR langgenius/dify#2195](https://github.com/langgenius/dify-official-plugins/pull/2195) fixed missing `</think>` tags in multiple think rounds for DeepSeek v3.1 - [PR langgenius/dify#2307](https://github.com/langgenius/dify-official-plugins/pull/2307) added multi-turn thinking support with proper tag wrapping You may want to check if you're on the latest version of the DeepSeek plugin, as these fixes were merged in December 2025. If you're already on the latest version and still experiencing this, the existing issue at [dify-official-plugins#2244](https://github.com/langgenius/dify-official-plugins/issues/2244) is tracking this problem. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/25001fbb-9bd7-455b-9bb6-b2e780eff5ab?feedback_type=other)</sup> [![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&nbsp;[![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%20with%20DeepSeek%20models%20in%20Dify.%20When%20using%20DeepSeek-V3.2%20%28and%20similar%20models%20like%20V3%2C%20V3.1%2C%20R1%29%2C%20the%20%60%3C/think%3E%60%20tag%20is%20not%20being%20properly%20parsed%2C%20causing%20the%20final%20answer%20to%20appear%20inside%20the%20thought%20box%20rather%20than%20being%20separated.%0A%0A%2A%2ARelated%20issues%3A%2A%2A%0A-%20%5BMissing%20content%20when%20enable%20thinking%20by%20DeepSeek-V3.2%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2244%29%20-%20Reports%20the%20same%20problem%20where%20only%20%60reasoning_content%60%20is%20returned%20and%20final%20content%20is%20missing%20or%20improperly%20formatted%0A-%20%5BDeepSeek%20R1%20streaming%20thinking%20not%20separated%5D%28https%3A//github.com/langgenius/dify/issues/16108%29%20-%20Similar%20issue%20where%20thinking%20and%20main%20text%20appear%20in%20the%20same%20message%0A%0A%2A%2ARecent%20fixes%20that%20may%20help%3A%2A%2A%0A-%20%5BPR%20%232195%5D%28https%3A//github.com/langgenius/dify-official-plugins/pull/2195%29%20fixed%20missing%20%60%3C/think%3E%60%20tags%20in%20multiple%20think%20rounds%20for%20DeepSeek%20v3.1%0A-%20%5BPR%20%232307%5D%28https%3A//github.com/langgenius/dify-official-plugins/pull/2307%29%20added%20multi-turn%20thinking%20support%20with%20proper%20tag%20wrapping%0A%0AYou%20may%20want%20to%20check%20if%20you%27re%20on%20the%20latest%20version%20of%20the%20DeepSeek%20plugin%2C%20as%20these%20fixes%20were%20merged%20in%20December%202025.%20If%20you%27re%20already%20on%20the%20latest%20version%20and%20still%20experiencing%20this%2C%20the%20existing%20issue%20at%20%5Bdify-official-plugins%232244%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/2244%29%20is%20tracking%20this%20problem.)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/32294)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#975