[GH-ISSUE #4177] [Engine] reasoning is returned as output text — no reasoning item on /v1/responses #1834

Open
opened 2026-11-04 01:54:29 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @XTTGO on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4177

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Terminal (Windows)

How it was started

Terminal (the strata command), engine 0.1.51, started from the profile JSON in the Logs section. The client is DeepSeek Harness (DSH), not the Strata desktop app.

What happened

The Responses endpoint returns the model's chain-of-thought as ordinary assistant text. No reasoning item is returned, so a client cannot separate thinking from the answer and renders the raw reasoning to the user. (Evidence here is for /v1/responses only; chat mode is untested and is what the second command below checks.)

Observed on this machine, not inferred from code: in one real client session, 797 of 797 assistant messages from this endpoint contained zero parts of type reasoning, while 14 of 14 messages from a different provider in the same session did contain them.

The normalised stream record for one response:

[0] block-start  {"index":0,"blockType":"text"}
[2] block-end    {"index":0,"block":{"type":"text","text":"The `out` logic is wrong. Let me simplify: ..."}}
[4] finish       {"kind":"max-tokens"}
replayState.blocks: [{"type":"text"}]

No blockType:"reasoning" appears anywhere in that stream. For contrast, the same client against a provider that does separate reasoning produced:

block-start {"index":0,"blockType":"reasoning"}
block-start {"index":1,"blockType":"text"}

Two responses were pathological: reasoning text of 26,826 characters, and of 116,254 characters that never terminated. In the second, the phrase I'll write occurs 2,356 times before the request hits max-tokens.

The engine log matches both assistant messages field for field, so the tokens were generated here:

maya ds4 serve: prompt 125821 tokens = 122174 reused + 3647 read in 15085 ms (241.8 tok/s), 32768 generated in 1029389 ms (31.83 tok/s); CPU lane 16.7% of the experts
maya ds4 serve: prompt 90968 tokens = 90897 reused + 71 read in 1907 ms (37.2 tok/s), 7366 generated in 362272 ms (20.33 tok/s); CPU lane 16.4% of the experts

They correspond to client usage input 3647 / cacheRead 122174 / output 32768 and input 71 / cacheRead 90897 / output 7366. The 32,768-token request ran for 1,029,389 ms (about 17 minutes) before stopping on the token cap.

Expected: an output item with type: "reasoning" separate from the message / output_text item (and reasoning_content in chat mode).

I did not re-run the requests outside the client. The commands below are the minimised form of what the client sent.

Smallest steps or command that reproduce it

  1. Start the engine with the config below.
  2. Ask the Responses endpoint and inspect the item types:
curl -s http://127.0.0.1:8080/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"deepseek-v4.1-flash","input":"Think it through: 17*23=?","stream":false,"max_output_tokens":2048}' \
  | jq '.output[] | {type, role, content}'

Only a {"type":"message"} item appears; no {"type":"reasoning"} item.

  1. Cross-check chat mode, to separate a Responses-adapter problem from a server problem:
curl -s http://127.0.0.1:8080/v1/chat/completions \
  -H 'content-type: application/json' \
  -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"17*23=?"}],"max_tokens":2048}' \
  | jq '.choices[0].message | keys'

If reasoning_content is missing here too, the reasoning channel is not exposed by the server at all.

Reproduction status

Reproduced locally

Strata version

Strata 0.2.6 · engine 0.1.51

Graphics card, memory and system

2 × RTX 3090 24 GB · 256 GB RAM · Windows 11 Pro for Workstations

Model, size and settings

deepseek-v4.1-flash-ist-das-2.00bpw · 262144 context · --eos 1 --dspark auto --dspark-conf 0.65 --reserve-mib 2048 --cpu-threads 20 --ssd-cache 153 --ssd-policy lfu · text only, no pictures

Logs

Attached: strata-deepseek-v4.1-flash-ist-das-2.00bpw.log (151 KB). The two maya ds4 serve: lines quoted above are the relevant ones.

Launch config, local paths replaced by <STRATA_HOME> / <PACK_ROOT>, engine flags unchanged:

{
  "_note": "Local absolute paths replaced with placeholders; nothing else changed.",
  "exe": "<STRATA_HOME>\\engine-dsv41\\0.1.51-windows-x86_64-cuda-cuda13\\strata-dsv41.exe",
  "args": [
    "--pack", "<PACK_ROOT>\\deepseek-v4.1-flash-ist-das-2.00bpw",
    "--eos", "1",
    "--max-context", "262144",
    "--reserve-mib", "2048",
    "--cpu-threads", "20",
    "--dspark", "auto",
    "--dspark-conf", "0.65",
    "--ssd-cache", "153",
    "--ssd-policy", "lfu"
  ],
  "cwd": "<STRATA_HOME>",
  "tokenizer": "<PACK_ROOT>\\deepseek-v4.1-flash-ist-das-2.00bpw\\tokenizer",
  "model_name": "deepseek-v4.1-flash",
  "arch": "deepseek41",
  "log": "<STRATA_HOME>\\strata-deepseek-v4.1-flash-ist-das-2.00bpw.log",
  "lib_dirs": [
    "<STRATA_HOME>\\.venv\\Lib\\site-packages\\nvidia\\cu13\\bin\\x86_64",
    "<STRATA_HOME>\\engine-dsv41\\0.1.51-windows-x86_64-cuda-cuda13"
  ],
  "port": 8080,
  "engine_ready_s": 3600,
  "gpus_asked": true,
  "gpu": 1,
  "user_args": [
    "--max-context", "262144",
    "--reserve-mib", "2048",
    "--cpu-threads", "20",
    "--ssd-cache", "153",
    "--ssd-policy", "lfu"
  ],
  "args_written": [
    "--pack", "<PACK_ROOT>\\deepseek-v4.1-flash-ist-das-2.00bpw",
    "--eos", "1",
    "--max-context", "262144",
    "--reserve-mib", "2048",
    "--cpu-threads", "20",
    "--dspark", "auto",
    "--dspark-conf", "0.65",
    "--ssd-cache", "153",
    "--ssd-policy", "lfu"
  ]
}

Notes that may help

  • DSpark not loaded appears in the log for this pack, so --dspark is not in play.
  • The 32,768-token run stopped on the cap, not on a stop token, so the thinking block never terminated by itself.
  • Request/response ids: resp_b3495eee2b194484aaba0b817747a8fc (the 32,768-token one), resp_ffca454045244e82a4fefd66146a25c5 (the 7,366-token one).
Originally created by @XTTGO on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4177 ## Area [Engine] (speed, kernels, models, the server and API) ## Desktop app, Terminal or source? Terminal (Windows) ## How it was started Terminal (the `strata` command), engine `0.1.51`, started from the profile JSON in the Logs section. The client is DeepSeek Harness (DSH), not the Strata desktop app. ## What happened The Responses endpoint returns the model's chain-of-thought as ordinary assistant text. No `reasoning` item is returned, so a client cannot separate thinking from the answer and renders the raw reasoning to the user. (Evidence here is for `/v1/responses` only; chat mode is untested and is what the second command below checks.) Observed on this machine, not inferred from code: in one real client session, 797 of 797 assistant messages from this endpoint contained zero parts of type `reasoning`, while 14 of 14 messages from a different provider in the same session did contain them. The normalised stream record for one response: ``` [0] block-start {"index":0,"blockType":"text"} [2] block-end {"index":0,"block":{"type":"text","text":"The `out` logic is wrong. Let me simplify: ..."}} [4] finish {"kind":"max-tokens"} replayState.blocks: [{"type":"text"}] ``` No `blockType:"reasoning"` appears anywhere in that stream. For contrast, the same client against a provider that does separate reasoning produced: ``` block-start {"index":0,"blockType":"reasoning"} block-start {"index":1,"blockType":"text"} ``` Two responses were pathological: reasoning text of 26,826 characters, and of 116,254 characters that never terminated. In the second, the phrase `I'll write` occurs 2,356 times before the request hits `max-tokens`. The engine log matches both assistant messages field for field, so the tokens were generated here: ``` maya ds4 serve: prompt 125821 tokens = 122174 reused + 3647 read in 15085 ms (241.8 tok/s), 32768 generated in 1029389 ms (31.83 tok/s); CPU lane 16.7% of the experts maya ds4 serve: prompt 90968 tokens = 90897 reused + 71 read in 1907 ms (37.2 tok/s), 7366 generated in 362272 ms (20.33 tok/s); CPU lane 16.4% of the experts ``` They correspond to client usage `input 3647 / cacheRead 122174 / output 32768` and `input 71 / cacheRead 90897 / output 7366`. The 32,768-token request ran for 1,029,389 ms (about 17 minutes) before stopping on the token cap. Expected: an `output` item with `type: "reasoning"` separate from the `message` / `output_text` item (and `reasoning_content` in chat mode). I did not re-run the requests outside the client. The commands below are the minimised form of what the client sent. ## Smallest steps or command that reproduce it 1. Start the engine with the config below. 2. Ask the Responses endpoint and inspect the item types: ```bash curl -s http://127.0.0.1:8080/v1/responses \ -H 'content-type: application/json' \ -d '{"model":"deepseek-v4.1-flash","input":"Think it through: 17*23=?","stream":false,"max_output_tokens":2048}' \ | jq '.output[] | {type, role, content}' ``` Only a `{"type":"message"}` item appears; no `{"type":"reasoning"}` item. 3. Cross-check chat mode, to separate a Responses-adapter problem from a server problem: ```bash curl -s http://127.0.0.1:8080/v1/chat/completions \ -H 'content-type: application/json' \ -d '{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"17*23=?"}],"max_tokens":2048}' \ | jq '.choices[0].message | keys' ``` If `reasoning_content` is missing here too, the reasoning channel is not exposed by the server at all. ## Reproduction status Reproduced locally ## Strata version Strata 0.2.6 · engine 0.1.51 ## Graphics card, memory and system 2 × RTX 3090 24 GB · 256 GB RAM · Windows 11 Pro for Workstations ## Model, size and settings deepseek-v4.1-flash-ist-das-2.00bpw · 262144 context · `--eos 1 --dspark auto --dspark-conf 0.65 --reserve-mib 2048 --cpu-threads 20 --ssd-cache 153 --ssd-policy lfu` · text only, no pictures ## Logs Attached: `strata-deepseek-v4.1-flash-ist-das-2.00bpw.log` (151 KB). The two `maya ds4 serve:` lines quoted above are the relevant ones. Launch config, local paths replaced by `<STRATA_HOME>` / `<PACK_ROOT>`, engine flags unchanged: ```json { "_note": "Local absolute paths replaced with placeholders; nothing else changed.", "exe": "<STRATA_HOME>\\engine-dsv41\\0.1.51-windows-x86_64-cuda-cuda13\\strata-dsv41.exe", "args": [ "--pack", "<PACK_ROOT>\\deepseek-v4.1-flash-ist-das-2.00bpw", "--eos", "1", "--max-context", "262144", "--reserve-mib", "2048", "--cpu-threads", "20", "--dspark", "auto", "--dspark-conf", "0.65", "--ssd-cache", "153", "--ssd-policy", "lfu" ], "cwd": "<STRATA_HOME>", "tokenizer": "<PACK_ROOT>\\deepseek-v4.1-flash-ist-das-2.00bpw\\tokenizer", "model_name": "deepseek-v4.1-flash", "arch": "deepseek41", "log": "<STRATA_HOME>\\strata-deepseek-v4.1-flash-ist-das-2.00bpw.log", "lib_dirs": [ "<STRATA_HOME>\\.venv\\Lib\\site-packages\\nvidia\\cu13\\bin\\x86_64", "<STRATA_HOME>\\engine-dsv41\\0.1.51-windows-x86_64-cuda-cuda13" ], "port": 8080, "engine_ready_s": 3600, "gpus_asked": true, "gpu": 1, "user_args": [ "--max-context", "262144", "--reserve-mib", "2048", "--cpu-threads", "20", "--ssd-cache", "153", "--ssd-policy", "lfu" ], "args_written": [ "--pack", "<PACK_ROOT>\\deepseek-v4.1-flash-ist-das-2.00bpw", "--eos", "1", "--max-context", "262144", "--reserve-mib", "2048", "--cpu-threads", "20", "--dspark", "auto", "--dspark-conf", "0.65", "--ssd-cache", "153", "--ssd-policy", "lfu" ] } ``` ## Notes that may help - `DSpark not loaded` appears in the log for this pack, so `--dspark` is not in play. - The 32,768-token run stopped on the cap, not on a stop token, so the thinking block never terminated by itself. - Request/response ids: `resp_b3495eee2b194484aaba0b817747a8fc` (the 32,768-token one), `resp_ffca454045244e82a4fefd66146a25c5` (the 7,366-token one).
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Desktop app, Terminal or source?".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6407081647 --> @github-actions[bot] commented on GitHub (Oct 26, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Desktop app, Terminal or source?". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6414221964 --> @github-actions[bot] commented on GitHub (Oct 26, 2026): Thanks, this follows the format now.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Please paste the output of the two requests (/v1/responses and /v1/chat/completions, with the thinking or reasoning_effort field your client sends) and the server log line that shows the thinking mode for that request. DeepSeek opens a thinking block only when the request asks for it.

<!-- gh-comment-id:6491997302 --> @Niko1221 commented on GitHub (Oct 29, 2026): Please paste the output of the two requests (`/v1/responses` and `/v1/chat/completions`, with the thinking or `reasoning_effort` field your client sends) and the server log line that shows the thinking mode for that request. DeepSeek opens a thinking block only when the request asks for it.
Author
Owner

@XTTGO commented on GitHub (Oct 30, 2026):

Engine: strata-dsv41 0.1.51, 127.0.0.1:8080, pack deepseek-v4.1-flash-ist-das-2.00bpw.

/v1/responses — no reasoning field in the request

{"model":"deepseek-v4.1-flash","input":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through.","max_output_tokens":512}
output item types : reasoning, message
reasoning item    : "We need answer. Need think. Train leaves 14:20, duration 3h45. Arrival = 14:20 + ..."
usage             : output_tokens 82, output_tokens_details.reasoning_tokens 67

/v1/responses — with the field

{"model":"deepseek-v4.1-flash","input":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through.","max_output_tokens":512,"reasoning":{"effort":"high"}}
output item types : reasoning, message
usage             : output_tokens 75, output_tokens_details.reasoning_tokens 60

/v1/chat/completions — no field in the request

{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through."}],"max_tokens":512}
choices[0].message keys : role, content, reasoning_content
reasoning_content       : 158 characters
usage.completion_tokens : 77

/v1/chat/completions — with the field

{"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through."}],"max_tokens":512,"reasoning_effort":"high"}
choices[0].message keys : role, content, reasoning_content
reasoning_content       : 140 characters
usage.completion_tokens : 81

Streaming /v1/responses ("stream": true), event counts

response.reasoning_text.delta   36
response.reasoning_text.done     2
response.output_text.delta       2
response.output_text.done        2
response.output_item.added       4
response.output_item.done        4

Server log lines for the four requests above

maya ds4 serve: prompt 57 tokens = 0 reused + 57 read in 2218 ms (25.7 tok/s), 82 generated in 5421 ms (15.13 tok/s); CPU lane 10.4% of the experts
maya ds4 serve: prompt 57 tokens = 56 reused + 1 read in 82 ms (12.2 tok/s), 75 generated in 4978 ms (15.07 tok/s); CPU lane 10.4% of the experts
maya ds4 serve: prompt 57 tokens = 56 reused + 1 read in 94 ms (10.7 tok/s), 77 generated in 5141 ms (14.98 tok/s); CPU lane 10.4% of the experts
maya ds4 serve: prompt 57 tokens = 56 reused + 1 read in 74 ms (13.5 tok/s), 81 generated in 5354 ms (15.13 tok/s); CPU lane 10.4% of the experts

Note: 0.1.51 prints no thinking-mode line per request. Grep over the whole log for effort|thinking|enable_thinking|reasoning_tokens returns 0 matches; the per-request line carries only prompt/generated counts and timings.

<!-- gh-comment-id:6516132905 --> @XTTGO commented on GitHub (Oct 30, 2026): Engine: `strata-dsv41` 0.1.51, `127.0.0.1:8080`, pack `deepseek-v4.1-flash-ist-das-2.00bpw`. ## /v1/responses — no reasoning field in the request ```json {"model":"deepseek-v4.1-flash","input":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through.","max_output_tokens":512} ``` ``` output item types : reasoning, message reasoning item : "We need answer. Need think. Train leaves 14:20, duration 3h45. Arrival = 14:20 + ..." usage : output_tokens 82, output_tokens_details.reasoning_tokens 67 ``` ## /v1/responses — with the field ```json {"model":"deepseek-v4.1-flash","input":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through.","max_output_tokens":512,"reasoning":{"effort":"high"}} ``` ``` output item types : reasoning, message usage : output_tokens 75, output_tokens_details.reasoning_tokens 60 ``` ## /v1/chat/completions — no field in the request ```json {"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through."}],"max_tokens":512} ``` ``` choices[0].message keys : role, content, reasoning_content reasoning_content : 158 characters usage.completion_tokens : 77 ``` ## /v1/chat/completions — with the field ```json {"model":"deepseek-v4.1-flash","messages":[{"role":"user","content":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through."}],"max_tokens":512,"reasoning_effort":"high"} ``` ``` choices[0].message keys : role, content, reasoning_content reasoning_content : 140 characters usage.completion_tokens : 81 ``` ## Streaming /v1/responses (`"stream": true`), event counts ``` response.reasoning_text.delta 36 response.reasoning_text.done 2 response.output_text.delta 2 response.output_text.done 2 response.output_item.added 4 response.output_item.done 4 ``` ## Server log lines for the four requests above ``` maya ds4 serve: prompt 57 tokens = 0 reused + 57 read in 2218 ms (25.7 tok/s), 82 generated in 5421 ms (15.13 tok/s); CPU lane 10.4% of the experts maya ds4 serve: prompt 57 tokens = 56 reused + 1 read in 82 ms (12.2 tok/s), 75 generated in 4978 ms (15.07 tok/s); CPU lane 10.4% of the experts maya ds4 serve: prompt 57 tokens = 56 reused + 1 read in 94 ms (10.7 tok/s), 77 generated in 5141 ms (14.98 tok/s); CPU lane 10.4% of the experts maya ds4 serve: prompt 57 tokens = 56 reused + 1 read in 74 ms (13.5 tok/s), 81 generated in 5354 ms (15.13 tok/s); CPU lane 10.4% of the experts ``` Note: 0.1.51 prints no thinking-mode line per request. Grep over the whole log for `effort|thinking|enable_thinking|reasoning_tokens` returns 0 matches; the per-request line carries only prompt/generated counts and timings.
Author
Owner

@XTTGO commented on GitHub (Oct 30, 2026):

I cannot reproduce the original request, so below is what my records contain, plus one controlled probe against the same engine.
All of it is the local setup: strata-dsv41 0.1.51 on 127.0.0.1:8080, pack
deepseek-v4.1-flash-ist-das-2.00bpw, client DSH over openai-responses.

1. /v1/responses — the failing request

The request body was not logged by the client, so I cannot show it. What the client recorded for that response:

block-start  {"index":0,"blockType":"text"}
block-end    {"index":0,"block":{"type":"text","text":"<116,254 characters>"}}
finish       {"kind":"max-tokens"}
replayState.blocks: [{"type":"text"}]
usage        {"inputTokens":3647,"outputTokens":32768,"cacheReadTokens":122174}

No blockType:"reasoning" appears anywhere in that stream. The 116,254 characters are planning prose, not an answer.
A sample from it (offset 486):

Let me fix `out`.

Also `process.argv[1]` is the script path. My condition picks script path if ends with .png — false. So out='contact.png'. Fine.

Run with files.

Let me run.

Files:
- 00150
- 00480
...
Let me run.

But wait 22 frames, grid 5 cols, rows 5 (last row 2). Fine.

Run.

Then contact.png.

Inside that one message: Let me appears 2,300 times, I'll write 2,356 times, Ok. 2,368 times, across 9,728
non-empty lines (average 12 characters per line).

This was not isolated. In that session 812 assistant messages were recorded, 54 of them carried text. Eleven of those
exceeded 5,000 characters, and together they account for 222,985 characters — 87.9% of all visible text produced:

length messages
> 20,000 chars 2
5,000 – 20,000 9
1,000 – 5,000 8
1 – 1,000 35

2. /v1/chat/completions — nothing to paste

My client never called that endpoint. Every assistant message in the session has
source.replayState.response.api = "openai-responses", so there is no chat-completions request or output from the
failure period to show.

3. The thinking / reasoning_effort field my client sends

Also not logged. What the client does store:

model/selection for this provider:

{"provider":"strata-qwen","model":"deepseek-v4.1-flash 1017"}

For comparison, the same field after switching to another provider:

{"provider":"deepseek-account","model":"deepseek-flash","reasoningEffort":"high"}

So for the local provider there is no reasoningEffort in the selection record, while the other provider has one.

request/header (everything the client kept about the outgoing call):

keys: config, tools
config = {"provider":"strata-qwen","model":"deepseek-v4.1-flash 1017"}
tools  = 58 tool schemas

No thinking or reasoning parameter is stored anywhere in the session. I cannot claim from this what the HTTP body
contained — only that it was not kept.

4. The server log line for those requests

maya ds4 serve: prompt 125821 tokens = 122174 reused + 3647 read in 15085 ms (241.8 tok/s), 32768 generated in 1029389 ms (31.83 tok/s); CPU lane 16.7% of the experts
maya ds4 serve: prompt 90968 tokens = 90897 reused + 71 read in 1907 ms (37.2 tok/s), 7366 generated in 362272 ms (20.33 tok/s); CPU lane 16.4% of the experts

They match the client's usage field by field (122174 reused / 3647 read / 32768 generated; 90897 / 71 /
7366).

On your question about a line that shows the thinking mode: this build does not write one. Grepping the whole log
for effort, thinking, enable_thinking and reasoning_tokens returns 0 matches. The per-request line carries only
prompt/generated counts, timings and the CPU-lane share. If you want that recorded, usage.reasoning_tokens looks like
the cheapest thing to log.

5. Controlled probe, same engine (not the failing request)

Request, with no reasoning field at all:

{"model":"deepseek-v4.1-flash","input":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through.","max_output_tokens":512}

Response: output item types ["reasoning","message"], usage.output_tokens_details.reasoning_tokens = 67,
usage.output_tokens = 82.

Same for chat completions with no field in the body: choices[0].message has keys role, content, reasoning_content
(158 characters).

Streamed /v1/responses, event counts:

response.reasoning_text.delta 36 / response.reasoning_text.done 2
response.output_text.delta 2 / response.output_text.done 2

What this leaves

On my box the engine separates thinking correctly, in both modes, whether or not the request asks for it. My client's
records show zero reasoning parts across 797 responses and I cannot show what its request body was. So the evidence I
have points at the client side of my setup, and I am taking it there rather than asking you to chase it. Sorry for the
noise.

<!-- gh-comment-id:6516311229 --> @XTTGO commented on GitHub (Oct 30, 2026): I cannot reproduce the original request, so below is what my records contain, plus one controlled probe against the same engine. All of it is the local setup: `strata-dsv41` 0.1.51 on `127.0.0.1:8080`, pack `deepseek-v4.1-flash-ist-das-2.00bpw`, client DSH over `openai-responses`. ## 1. /v1/responses — the failing request The request body was not logged by the client, so I cannot show it. What the client recorded for that response: ``` block-start {"index":0,"blockType":"text"} block-end {"index":0,"block":{"type":"text","text":"<116,254 characters>"}} finish {"kind":"max-tokens"} replayState.blocks: [{"type":"text"}] usage {"inputTokens":3647,"outputTokens":32768,"cacheReadTokens":122174} ``` No `blockType:"reasoning"` appears anywhere in that stream. The 116,254 characters are planning prose, not an answer. A sample from it (offset 486): ``` Let me fix `out`. Also `process.argv[1]` is the script path. My condition picks script path if ends with .png — false. So out='contact.png'. Fine. Run with files. Let me run. Files: - 00150 - 00480 ... Let me run. But wait 22 frames, grid 5 cols, rows 5 (last row 2). Fine. Run. Then contact.png. ``` Inside that one message: `Let me ` appears 2,300 times, `I'll write` 2,356 times, `Ok.` 2,368 times, across 9,728 non-empty lines (average 12 characters per line). This was not isolated. In that session 812 assistant messages were recorded, 54 of them carried text. Eleven of those exceeded 5,000 characters, and together they account for 222,985 characters — 87.9% of all visible text produced: | length | messages | |---|---| | > 20,000 chars | 2 | | 5,000 – 20,000 | 9 | | 1,000 – 5,000 | 8 | | 1 – 1,000 | 35 | ## 2. /v1/chat/completions — nothing to paste My client never called that endpoint. Every assistant message in the session has `source.replayState.response.api = "openai-responses"`, so there is no chat-completions request or output from the failure period to show. ## 3. The thinking / reasoning_effort field my client sends Also not logged. What the client does store: `model/selection` for this provider: ```json {"provider":"strata-qwen","model":"deepseek-v4.1-flash 1017"} ``` For comparison, the same field after switching to another provider: ```json {"provider":"deepseek-account","model":"deepseek-flash","reasoningEffort":"high"} ``` So for the local provider there is no `reasoningEffort` in the selection record, while the other provider has one. `request/header` (everything the client kept about the outgoing call): ``` keys: config, tools config = {"provider":"strata-qwen","model":"deepseek-v4.1-flash 1017"} tools = 58 tool schemas ``` No thinking or reasoning parameter is stored anywhere in the session. I cannot claim from this what the HTTP body contained — only that it was not kept. ## 4. The server log line for those requests ``` maya ds4 serve: prompt 125821 tokens = 122174 reused + 3647 read in 15085 ms (241.8 tok/s), 32768 generated in 1029389 ms (31.83 tok/s); CPU lane 16.7% of the experts maya ds4 serve: prompt 90968 tokens = 90897 reused + 71 read in 1907 ms (37.2 tok/s), 7366 generated in 362272 ms (20.33 tok/s); CPU lane 16.4% of the experts ``` They match the client's usage field by field (`122174 reused` / `3647 read` / `32768 generated`; `90897` / `71` / `7366`). On your question about a line that shows the thinking mode: **this build does not write one.** Grepping the whole log for `effort`, `thinking`, `enable_thinking` and `reasoning_tokens` returns 0 matches. The per-request line carries only prompt/generated counts, timings and the CPU-lane share. If you want that recorded, `usage.reasoning_tokens` looks like the cheapest thing to log. ## 5. Controlled probe, same engine (not the failing request) Request, with no reasoning field at all: ```json {"model":"deepseek-v4.1-flash","input":"A train leaves at 14:20 and takes 3 h 45 min. What time does it arrive? Think it through.","max_output_tokens":512} ``` Response: `output` item types `["reasoning","message"]`, `usage.output_tokens_details.reasoning_tokens = 67`, `usage.output_tokens = 82`. Same for chat completions with no field in the body: `choices[0].message` has keys `role, content, reasoning_content` (158 characters). Streamed `/v1/responses`, event counts: ``` response.reasoning_text.delta 36 / response.reasoning_text.done 2 response.output_text.delta 2 / response.output_text.done 2 ``` ## What this leaves On my box the engine separates thinking correctly, in both modes, whether or not the request asks for it. My client's records show zero reasoning parts across 797 responses and I cannot show what its request body was. So the evidence I have points at the client side of my setup, and I am taking it there rather than asking you to chase it. Sorry for the noise.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1834
No description provided.