Skip to content

Fix issue with enable-think in DeepSeek #77

@fanmingyu-fmy

Description

@fanmingyu-fmy

Hello,

I noticed that this repository has not had updates for several months, so I am not sure whether it is still actively maintained.

I am currently using another project (Eino) which depends on github.com/cohesion-org/deepseek-go v1.3.2. At the same time, DeepSeek itself has been evolving, and I have encountered some issues related to think-mode when using deepseek-v3.2.

I would like to ask whether there are any plans to update this repository to address these changes. If not, would you be open to accepting a pull request for a fix?

Thank you very much for your time and for maintaining this project.


The issue seems to be related to the configuration of think-mode for DeepSeek.

Image

As shown in the screenshot above, the documentation / code indicates that in order to enable DeepSeek’s thinking mode, the parameters should be passed in the following format:

"chat_template_kwargs": {
"thinking": {
"type": "enabled"
}
}

However, using a Qwen-style configuration such as:

"chat_template_kwargs": {
"enable_thinking": true
}

does not take effect for DeepSeek.

Based on my testing, the enable_thinking approach does not enable think-mode, while the "type": "enabled" configuration works as expected. This can also be observed in the screenshot below.

If this behavior is expected, it might be helpful to clarify or update the documentation.
If not, I am happy to submit a pull request to align the configuration with the current DeepSeek behavior.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions