Answer will be all thinking content without answer,if enable thinking for deepseek v3.1(volcengine) #854

Closed
opened 2026-02-16 10:20:44 -05:00 by yindo · 2 comments
Owner

Originally created by @leslie2046 on GitHub (Dec 5, 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 Dify issues & Dify Official Plugins, 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.10.1

Plugin version

0.0.35

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image Image Image

✔️ Error log

No response

Originally created by @leslie2046 on GitHub (Dec 5, 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 [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/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.10.1 ### Plugin version 0.0.35 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce <img width="530" height="665" alt="Image" src="https://github.com/user-attachments/assets/e9eca57b-8dc4-4743-b668-a1b027724742" /> <img width="776" height="425" alt="Image" src="https://github.com/user-attachments/assets/d9e79285-447a-42fe-80c8-fb3f732db67a" /> <img width="814" height="281" alt="Image" src="https://github.com/user-attachments/assets/f9aeed59-57b9-412e-a14f-c1f5fe9534b9" /> ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:20:44 -05:00
yindo closed this issue 2026-02-16 10:20:44 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 5, 2025):

For DeepSeek v3.1 (volceengine) in plugin version 0.0.35, you can enable "thinking mode" by setting the thinking parameter to enabled in your model configuration. This parameter is available in the Volcengine MaaS plugin and controls whether the model outputs its reasoning ("think content") in the response stream. When enabled, the backend logic wraps and streams reasoning content, so you should see all think content in the output if the model and plugin are working correctly. There is no enable_thinking parameter—just use thinking: enabled in your settings. If you want to disable it, set thinking: disabled (though some models may not support disabling and could return an error) see implementation details.

If you are not seeing all think content, check for known output handling bugs in the plugin, especially with streamed responses. Sometimes, patching the plugin to avoid using string replace for streamed output and instead appending new content directly can resolve missing or incomplete reasoning output see bug discussion and workaround.

No upgrade is strictly required for basic thinking mode, but newer plugin versions may offer improved support and bug fixes.

To reply, just mention @dosu.


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

Open in Cursor Join Discord Share on X

@dosubot[bot] commented on GitHub (Dec 5, 2025): <!-- Answer --> For DeepSeek v3.1 (volceengine) in plugin version 0.0.35, you can enable "thinking mode" by setting the `thinking` parameter to `enabled` in your model configuration. This parameter is available in the Volcengine MaaS plugin and controls whether the model outputs its reasoning ("think content") in the response stream. When enabled, the backend logic wraps and streams reasoning content, so you should see all think content in the output if the model and plugin are working correctly. There is no `enable_thinking` parameter—just use `thinking: enabled` in your settings. If you want to disable it, set `thinking: disabled` (though some models may not support disabling and could return an error) [see implementation details](https://github.com/langgenius/dify-official-plugins/blob/4bee8b35414d73d92f75ba71faf9ce886b7e8372/models/volcengine_maas/models/llm/llm.py#L56-L664). If you are not seeing all think content, check for known output handling bugs in the plugin, especially with streamed responses. Sometimes, patching the plugin to avoid using string `replace` for streamed output and instead appending new content directly can resolve missing or incomplete reasoning output [see bug discussion and workaround](https://github.com/langgenius/dify-official-plugins/issues/1621). No upgrade is strictly required for basic thinking mode, but newer plugin versions may offer improved support and bug fixes. <!-- 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/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a70671ed-b7d2-4bb3-8243-0f6682678919?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=For%20DeepSeek%20v3.1%20%28volceengine%29%20in%20plugin%20version%200.0.35%2C%20you%20can%20enable%20%22thinking%20mode%22%20by%20setting%20the%20%60thinking%60%20parameter%20to%20%60enabled%60%20in%20your%20model%20configuration.%20This%20parameter%20is%20available%20in%20the%20Volcengine%20MaaS%20plugin%20and%20controls%20whether%20the%20model%20outputs%20its%20reasoning%20%28%22think%20content%22%29%20in%20the%20response%20stream.%20When%20enabled%2C%20the%20backend%20logic%20wraps%20and%20streams%20reasoning%20content%2C%20so%20you%20should%20see%20all%20think%20content%20in%20the%20output%20if%20the%20model%20and%20plugin%20are%20working%20correctly.%20There%20is%20no%20%60enable_thinking%60%20parameter%E2%80%94just%20use%20%60thinking%3A%20enabled%60%20in%20your%20settings.%20If%20you%20want%20to%20disable%20it%2C%20set%20%60thinking%3A%20disabled%60%20%28though%20some%20models%20may%20not%20support%20disabling%20and%20could%20return%20an%20error%29%C2%A0%5Bsee%20implementation%20details%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/4bee8b35414d73d92f75ba71faf9ce886b7e8372/models/volcengine_maas/models/llm/llm.py%23L56-L664%29.%0A%0AIf%20you%20are%20not%20seeing%20all%20think%20content%2C%20check%20for%20known%20output%20handling%20bugs%20in%20the%20plugin%2C%20especially%20with%20streamed%20responses.%20Sometimes%2C%20patching%20the%20plugin%20to%20avoid%20using%20string%20%60replace%60%20for%20streamed%20output%20and%20instead%20appending%20new%20content%20directly%20can%20resolve%20missing%20or%20incomplete%20reasoning%20output%C2%A0%5Bsee%20bug%20discussion%20and%20workaround%5D%28https%3A//github.com/langgenius/dify-official-plugins/issues/1621%29.%0A%0ANo%20upgrade%20is%20strictly%20required%20for%20basic%20thinking%20mode%2C%20but%20newer%20plugin%20versions%20may%20offer%20improved%20support%20and%20bug%20fixes.)&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-official-plugins/issues/2185)
Author
Owner

@leslie2046 commented on GitHub (Dec 5, 2025):

@dosubot

{
"limit": 20,
"has_more": false,
"data": [{
"id": "6decab33-31bf-4cce-a4b2-1e4f78411e58",
"conversation_id": "e9bf8694-a721-49c8-aee6-c1f2f6f3a26e",
"inputs": {},
"query": "当前时间",
"message": [{
"role": "user",
"text": "当前时间",
"files": []
},
{
"role": "assistant",
"text": "",
"files": [],
"tool_calls": [{
"id": "call_b6suk7fnz245oanzhrlftnzk",
"type": "function",
"function": {
"name": "current_time",
"arguments": "{}"
}
}]
},
{
"role": "tool",
"text": "2025-12-05 22:19:14",
"files": [],
"tool_calls": [{
"id": "call_b6suk7fnz245oanzhrlftnzk",
"type": "function",
"function": {
"name": "current_time",
"arguments": "{}"
}
}]
}
],
"message_tokens": 2029,
"answer": "\n用户询问当前时间。我需要使用current_time工具来获取当前时间。这个工具不需要任何参数。让我调用它。\n\n当前时间是2025年12月5日 22:19:14。",
"answer_tokens": 69,
"provider_response_latency": 6.777980150000076,
"from_source": "console",
"from_end_user_id": null,
"from_account_id": "43636770-a92c-4cb3-a701-849e8004b54a",
"feedbacks": [],
"workflow_run_id": null,
"annotation": null,
"annotation_hit_history": null,
"created_at": 1764944350,
"agent_thoughts": [{
"id": "0699b521-23c6-4be5-aaa1-6b93f9c208ab",
"chain_id": null,
"message_id": "6decab33-31bf-4cce-a4b2-1e4f78411e58",
"position": 1,
"thought": "\n用户询问当前时间。我需要使用current_time工具来获取当前时间。这个工具不需要任何参数。让我调用它。",
"tool": "current_time",
"tool_labels": {
"current_time": {
"zh_Hans": "获取当前时间",
"en_US": "Current Time",
"pt_BR": "Current Time",
"ja_JP": "Current Time"
}
},
"tool_input": "{"current_time": {}}",
"created_at": 1764944350,
"observation": "{"current_time": "2025-12-05 22:19:14"}",
"files": []
},
{
"id": "cd9dba20-13d1-45c6-887b-4167a117238f",
"chain_id": null,
"message_id": "6decab33-31bf-4cce-a4b2-1e4f78411e58",
"position": 2,
"thought": "\n当前时间是2025年12月5日 22:19:14。",
"tool": "",
"tool_labels": {},
"tool_input": "",
"created_at": 1764944354,
"observation": "",
"files": []
}
],
"message_files": [],
"metadata": {
"annotation_reply": null,
"retriever_resources": [],
"usage": {
"prompt_tokens": 2029,
"prompt_unit_price": "0.002",
"prompt_price_unit": "0.001",
"prompt_price": "0.004058",
"completion_tokens": 69,
"completion_unit_price": "0.003",
"completion_price_unit": "0.001",
"completion_price": "0.000207",
"total_tokens": 2098,
"total_price": "0.004265",
"currency": "RMB",
"latency": 6.777980150000076,
"time_to_first_token": 3.216,
"time_to_generate": 3.493
}
},
"status": "normal",
"error": null,
"parent_message_id": null
}]
}

@leslie2046 commented on GitHub (Dec 5, 2025): @dosubot { "limit": 20, "has_more": false, "data": [{ "id": "6decab33-31bf-4cce-a4b2-1e4f78411e58", "conversation_id": "e9bf8694-a721-49c8-aee6-c1f2f6f3a26e", "inputs": {}, "query": "当前时间", "message": [{ "role": "user", "text": "当前时间", "files": [] }, { "role": "assistant", "text": "", "files": [], "tool_calls": [{ "id": "call_b6suk7fnz245oanzhrlftnzk", "type": "function", "function": { "name": "current_time", "arguments": "{}" } }] }, { "role": "tool", "text": "2025-12-05 22:19:14", "files": [], "tool_calls": [{ "id": "call_b6suk7fnz245oanzhrlftnzk", "type": "function", "function": { "name": "current_time", "arguments": "{}" } }] } ], "message_tokens": 2029, "answer": "<think>\n用户询问当前时间。我需要使用current_time工具来获取当前时间。这个工具不需要任何参数。让我调用它。\n<think>\n当前时间是2025年12月5日 22:19:14。", "answer_tokens": 69, "provider_response_latency": 6.777980150000076, "from_source": "console", "from_end_user_id": null, "from_account_id": "43636770-a92c-4cb3-a701-849e8004b54a", "feedbacks": [], "workflow_run_id": null, "annotation": null, "annotation_hit_history": null, "created_at": 1764944350, "agent_thoughts": [{ "id": "0699b521-23c6-4be5-aaa1-6b93f9c208ab", "chain_id": null, "message_id": "6decab33-31bf-4cce-a4b2-1e4f78411e58", "position": 1, "thought": "<think>\n用户询问当前时间。我需要使用current_time工具来获取当前时间。这个工具不需要任何参数。让我调用它。", "tool": "current_time", "tool_labels": { "current_time": { "zh_Hans": "获取当前时间", "en_US": "Current Time", "pt_BR": "Current Time", "ja_JP": "Current Time" } }, "tool_input": "{\"current_time\": {}}", "created_at": 1764944350, "observation": "{\"current_time\": \"2025-12-05 22:19:14\"}", "files": [] }, { "id": "cd9dba20-13d1-45c6-887b-4167a117238f", "chain_id": null, "message_id": "6decab33-31bf-4cce-a4b2-1e4f78411e58", "position": 2, "thought": "<think>\n当前时间是2025年12月5日 22:19:14。", "tool": "", "tool_labels": {}, "tool_input": "", "created_at": 1764944354, "observation": "", "files": [] } ], "message_files": [], "metadata": { "annotation_reply": null, "retriever_resources": [], "usage": { "prompt_tokens": 2029, "prompt_unit_price": "0.002", "prompt_price_unit": "0.001", "prompt_price": "0.004058", "completion_tokens": 69, "completion_unit_price": "0.003", "completion_price_unit": "0.001", "completion_price": "0.000207", "total_tokens": 2098, "total_price": "0.004265", "currency": "RMB", "latency": 6.777980150000076, "time_to_first_token": 3.216, "time_to_generate": 3.493 } }, "status": "normal", "error": null, "parent_message_id": null }] }
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#854