kimi-k2-thinking did not output reasoning_content #859

Closed
opened 2026-02-16 10:20:45 -05:00 by yindo · 1 comment
Owner

Originally created by @shesung on GitHub (Dec 8, 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.9.1

Plugin version

moonshot-0.0.9

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

create an LLM node, set model to kimi-k2-thinking.
"reasoning_content" in result is always empty.
As I know, moonshot api returns an msg object, which has explicit "reasoning_content" attr. The plugin seems not loading the attr.

✔️ Error log

No response

Originally created by @shesung on GitHub (Dec 8, 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.9.1 ### Plugin version moonshot-0.0.9 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce create an LLM node, set model to kimi-k2-thinking. "reasoning_content" in result is always empty. As I know, moonshot api returns an msg object, which has explicit "reasoning_content" attr. The plugin seems not loading the attr. ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:20:45 -05:00
yindo closed this issue 2026-02-16 10:20:45 -05:00
Author
Owner

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

The moonshot-0.0.9 plugin does not currently extract or expose the reasoning_content attribute from the Moonshot API response for the kimi-k2-thinking model. The plugin only processes the delta["content"] or choice["text"] fields, so even if the API returns reasoning_content, it will always be empty in the output unless the plugin is updated to handle it. This is a gap in the current implementation and not a configuration issue or a problem with your setup. Adding logic to parse and expose reasoning_content in the plugin’s stream response handler would resolve this bug. You can track plugin updates or consider contributing a patch if you need this field populated.
See source code analysis

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 8, 2025): <!-- Answer --> The moonshot-0.0.9 plugin does not currently extract or expose the `reasoning_content` attribute from the Moonshot API response for the kimi-k2-thinking model. The plugin only processes the `delta["content"]` or `choice["text"]` fields, so even if the API returns `reasoning_content`, it will always be empty in the output unless the plugin is updated to handle it. This is a gap in the current implementation and not a configuration issue or a problem with your setup. Adding logic to parse and expose `reasoning_content` in the plugin’s stream response handler would resolve this bug. You can track plugin updates or consider contributing a patch if you need this field populated. [See source code analysis](https://github.com/langgenius/dify-official-plugins/blob/f7aa925caaa1bfb94380a9b8efa3a02de0a44445/models/moonshot/models/llm/llm.py#L152-L290) <!-- 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/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/08234010-b80c-4081-b0a5-dd9134c40c0c?feedback_type=other)</sup> [![Open in Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20moonshot-0.0.9%20plugin%20does%20not%20currently%20extract%20or%20expose%20the%20%60reasoning_content%60%20attribute%20from%20the%20Moonshot%20API%20response%20for%20the%20kimi-k2-thinking%20model.%20The%20plugin%20only%20processes%20the%20%60delta%5B%22content%22%5D%60%20or%20%60choice%5B%22text%22%5D%60%20fields%2C%20so%20even%20if%20the%20API%20returns%20%60reasoning_content%60%2C%20it%20will%20always%20be%20empty%20in%20the%20output%20unless%20the%20plugin%20is%20updated%20to%20handle%20it.%20This%20is%20a%20gap%20in%20the%20current%20implementation%20and%20not%20a%20configuration%20issue%20or%20a%20problem%20with%20your%20setup.%20Adding%20logic%20to%20parse%20and%20expose%20%60reasoning_content%60%20in%20the%20plugin%E2%80%99s%20stream%20response%20handler%20would%20resolve%20this%20bug.%20You%20can%20track%20plugin%20updates%20or%20consider%20contributing%20a%20patch%20if%20you%20need%20this%20field%20populated.%20%20%0A%5BSee%20source%20code%20analysis%5D%28https%3A//github.com/langgenius/dify-official-plugins/blob/f7aa925caaa1bfb94380a9b8efa3a02de0a44445/models/moonshot/models/llm/llm.py%23L152-L290%29)&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/2200)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#859