Skip to content

fix: extract reasoning_content from DMR streaming responses#2335

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/fix-docker-agent-issue-2262-with-testing-130ce43e
Apr 7, 2026
Merged

fix: extract reasoning_content from DMR streaming responses#2335
dgageot merged 1 commit intodocker:mainfrom
dgageot:board/fix-docker-agent-issue-2262-with-testing-130ce43e

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Apr 7, 2026

The OpenAI SDK does not have a dedicated ReasoningContent field on ChatCompletionChunkChoiceDelta, so reasoning tokens sent by DMR (and other OpenAI-compatible providers) were silently dropped. Extract the value from ExtraFields and map it to the chat.MessageDelta.

Fixes #2262

Assisted-By: docker-agent

@dgageot dgageot requested a review from a team as a code owner April 7, 2026 07:55
The OpenAI SDK does not have a dedicated ReasoningContent field on
ChatCompletionChunkChoiceDelta, so reasoning tokens sent by DMR (and
other OpenAI-compatible providers) were silently dropped. Extract the
value from ExtraFields and map it to the chat.MessageDelta.

Fixes docker#2262

Assisted-By: docker-agent
@dgageot dgageot force-pushed the board/fix-docker-agent-issue-2262-with-testing-130ce43e branch from 0586651 to 0dc2799 Compare April 7, 2026 08:02
@dgageot dgageot merged commit c54f7a2 into docker:main Apr 7, 2026
4 checks passed
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.

Reasoning is not displayed with the DMR provider (and reasoning model)

2 participants