Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Add support for Chain of Thought (CoT) from deepseek-r1 #722

Open
Rianico opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@Rianico
Copy link

Rianico commented Jan 27, 2025

Hello everyone, I think the CoT of deepseek-r1 is significantly helpful for users to understand how the model solves the problem and can help us overcome the LLM hallucinations to some extent.

Currently the llm CLI just print the final output from llm, I think it's a cool feature if the cli can print the CoT.

According to the official document of Deepseek, the CoT is stored by the reasoning_content, which is at the same level as the content field, just like below:

reasoning_content = response.choices[0].message.reasoning_content
content = response.choices[0].message.content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant