[BUG] deepseek-v4-pro and v4.1-flash: finish_reason "stop" with the answer in reasoning_content and content empty

Author: Amiyanshu-webCreated Sep 24, 2026Updated Sep 28, 2026

Describe the bug

On streaming chat completions with thinking enabled, deepseek-v4-pro intermittently emits no content deltas at all, puts the complete user-facing answer in reasoning_content, and closes with finish_reason: "stop".

Not a truncation and not budget exhaustion — one captured case used 139 output tokens, 72 of them reasoning. The model reports a normal stop, having written its reply into the wrong channel.

To Reproduce

Not deterministic. Reproduces at a measurable rate under:

  • deepseek-v4-pro; also observed on V4.1 Flash
  • POST https://api.deepseek.com/chat/completions, stream: true
  • thinking: { type: "enabled" }, reasoning_effort: high
  • response_format: { type: "json_object" }
  • Long multi-turn conversation, ~24k prompt tokens

Replaying three captured production conversations, 45 runs: 13 ended with empty content on a stop finish (~29%).

The stream carries a role chunk, reasoning deltas, then the finish — with no content delta between them:

{"delta":{"role":"assistant","content":null,"reasoning_content":""},"finish_reason":null}
{"delta":{"reasoning_content":"…full answer…"},"finish_reason":null}
{"delta":{},"finish_reason":"stop"}

Expected behavior

A stop finish means the turn is complete, so content should carry the answer. Reasoning-only output on stop leaves the caller unable to tell a finished turn from a failed one.

Additional context

Similar-looking but different:

  • #1453 — both channels empty, tool-result triggered
  • #1610 — reasoning eats the budget, finish length
  • #1670 — same shape on the web product