You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LiteLLM DeepSeek thinking mode fails with missing reasoning_conten on tool calls #2155
When running the LiteLLM example against DeepSeek’s thinking mode with tools(DeepSeek V3.2 Thinking mode), the assistant tool-call message lacks the required reasoning_content field. DeepSeek responds with a 400 error: “Missing reasoning_content field in the assistant message …”.
Debug information
Agents SDK version: current main (after latest changes)
Python version: Python 3.13
Repro steps
uv run examples/model_providers/litellm_provider.py \
--model deepseek/deepseek-reasoner \
--api-key <deepseek_api_key>
The run fails after the tool call with a 400 complaining about missing reasoning_content.
Expected behavior
Assistant tool-call turns should include reasoning_content so DeepSeek can continue thinking + tool calling and return a final answer without error.
Reacted by shovelmn12, Stepan Tytarenko, David Gao and alazharn
Activity
shovelmn12 commentedon Dec 9, 2025
Please fix it :)
AryanBagade commentedon Dec 11, 2025
@seratch if this issue is still open, can i work on it!!
fix: extract reasoning_content from summary for DeepSeek compatibility (
Thebinary110 commentedon Jan 11, 2026
@Harrrryz @shovelmn12 @yurekami @seratch Is this Issue still open to contribute for or just solved?.
Fix DeepSeek reasoning_content missing in tool call messages
Fix DeepSeek reasoning_content missing in tool call messages
Fix DeepSeek reasoning_content missing in tool call messages
Fix DeepSeek reasoning_content missing in tool call messages
fix: openai#2155 DeepSeek reasoning_content missing in tool call mess…