Skip to content

Conversation

@Harrrryz
Copy link

@Harrrryz Harrrryz commented Dec 8, 2025

Title

Add DeepSeek thinking/tool-call guidance with reasoning_content

Relevant issues

N/A (docs-only guidance for DeepSeek thinking mode)

Pre-Submission checklist

Type

📖 Documentation

Changes

  • Update DeepSeek provider docs with a “Tool calling with thinking / reasoning_content” section explaining that DeepSeek requires echoing reasoning_content on assistant tool-call messages when thinking is enabled, linking to the official guide.
  • Add a full Python example showing how to enable thinking, replay reasoning_content, send tool outputs, and optionally strip reasoning content before a new user turn.

@vercel
Copy link

vercel bot commented Dec 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Dec 8, 2025 3:13am

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@stonyme
Copy link

stonyme commented Dec 8, 2025

thank you ,We need it.

model="deepseek/deepseek-reasoner",
messages=messages,
tools=tools,
extra_body={"thinking": {"type": "enabled"}},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this in extra body? can't we support this through the openai-compatible 'reasoning_effort' parameter or the anthropic thinking parameter? https://docs.litellm.ai/docs/reasoning_content#pass-thinking-to-anthropic-models

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

Successfully merging this pull request may close these issues.

4 participants