mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4638] [Engine] serve: Chat Completions ignores DeepSeek's thinking: {"type": "disabled"} #2106
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chestercs on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4638
Area
[Engine]
Desktop app, Terminal or source?
Docker: the release engine package, with the server from a v0.2.7.1 checkout.
What happened
On Chat Completions, a DeepSeek request with
"thinking": {"type": "disabled"}still thinks. This field is how DeepSeek's own API turns thinking off, next toreasoning_effort. Clients written for DeepSeek send only this field to turn thinking off; OpenClaw'sdeepseekthinking format does this for/think off.openai_to_messages()readsreasoning_effort,reasoning.effortandchat_template_kwargs, but notthinking. The Anthropic path (/v1/messages) already reads the same field.Expected: thinking is off, as with
reasoning_effort: "none".Smallest steps or command that reproduce it
Without the change, the prompt does not end in the template's empty thinking block;
test_thinking_offbelow shows this. On our live server on 0.2.7, before we patched it, OpenClaw's/think offturns came back with thinking.The change we run
When
thinkingis disabled it wins over an effort in the same request, as on the Anthropic path. Requests without the field are unchanged.Validation on
46c152a1:python3 -m unittest serve.test_dsv41 serve.test_frontend serve.test_serverin a container with the server's requirements: 443 tests, one failure (below).test_thinking_offfails without the change, on{'thinking': {'type': 'disabled'}}, and passes with it.test_server.VisionTempFiles.test_work_dir_has_no_space_when_temp_has_one, which fails the same way without the change in that container.servesuite, and no engine build (the change is inserve/only).Would you like this as a PR? I can open one, or you can take the diff as it is.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.7.1 (
46c152a1) · engine 0.1.53Graphics card, memory and system
DGX Spark (GB10), 128 GB unified · DGX OS, driver 580, CUDA 13.0
Model, size and settings
DeepSeek-V4.1-Flash-1017, ISTA-DASLab GSQ-RCO IQ1_M with the DSpark drafter · 131,072 context