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
127.0.0.1:8000 is not exposing "thinking" properly #9
While Deepseek-API correctly informs chat.deepseek.com about the selected thinking and search toggles, it doesn't properly expose them on the local OpenAI-compatible API at 127.0.0.1:8000, as it sends the thinking text along the normal text with no distinction. This leaves AI harnesses no choice but to mush thinking text into the normal reply text. E.g. opencode can't wrap them in that little nice ⠟ Thinking … collapsible section.
127.0.0.1:8000 also eats the 1st token from both: the thinking text, and the normal text — when the stream of thinking text ends and the stream of normal reply text starts, the normal reply will have its 1st token eaten.
Here is how 127.0.0.1:8000 speaks OpenAI API locally when sending thinking text:
Fixed in 7c55988. Thinking now comes through as reasoning_content (both streaming and non-streaming), and the first token is no longer getting eaten. Thanks for the detailed write-up, made this easy to track down.
Activity
Fix DeepThink output leaking into replies; harden server
sums001 commentedon Oct 30, 2026
Fixed in 7c55988. Thinking now comes through as
reasoning_content(both streaming and non-streaming), and the first token is no longer getting eaten. Thanks for the detailed write-up, made this easy to track down.