Skip to content

LiteLLM DeepSeek thinking mode fails with missing reasoning_conten on tool calls #2155

Closed

Description

@Harrrryz

Please read this first

  • Have you read the docs? Agents SDK docs
  • Have you searched for related issues? Yes

Describe the bug

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.

Activity

  1. added
    bug
    on Dec 5, 2025
  2. added
    enhancement
    good first issue
    and removed
    bug
    on Dec 5, 2025
  3. shovelmn12 commented on Dec 9, 2025

    @shovelmn12

    Please fix it :)

  4. AryanBagade commented on Dec 11, 2025

    @AryanBagade
    Contributor

    @seratch if this issue is still open, can i work on it!!

  5. Thebinary110 commented on Jan 11, 2026

    @Thebinary110

    @Harrrryz @shovelmn12 @yurekami @seratch Is this Issue still open to contribute for or just solved?.

  6. added 4 commits that reference this issue on Jan 18, 2026
    d8db9c2
    5dbdcc3
    f8c3a0f
    c7fddce
  7. added this to the 0.6.x milestone on Jan 19, 2026
  8. added a commit that references this issue on Jan 19, 2026
    8455af0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfeature:extensionsgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions