Skip to content

Conversation

@Harrrryz
Copy link

@Harrrryz Harrrryz commented Dec 5, 2025

Propagate reasoning_content onto assistant tool-call messages when using DeepSeek/thinking mode via LiteLLM. Extend the chat completion converter to optionally include reasoning content and enable it for DeepSeek. Added regression test covering reasoning content attachment.

@seratch seratch changed the title Fix DeepSeek reasoning content handling for LiteLLM Fix #2155 DeepSeek reasoning content handling for LiteLLM Dec 5, 2025
@seratch
Copy link
Member

seratch commented Dec 5, 2025

Thanks for sending this PR! One thing I want to check is that if this customization could be done on the LiteLLM side, that'd be the most appropriate situation for us. Have you considered contributing to the LiteLLM project?

@seratch seratch marked this pull request as draft December 5, 2025 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LiteLLM DeepSeek thinking mode fails with missing reasoning_conten on tool calls

2 participants