#17385
fix(deepseek): require reasoning_content presence on DeepSeek thinking-mode replay turns
Summary
When using DeepSeek models (e.g. deepseek-flash, deepseek-v4.1-flash) in thinking mode, multi-turn conversations where prior assistant messages lack reasoning_content (such as when switching targets or when clients omit the field) fail with:
[400]: The reasoning_content in the thinking mode must be passed back to the API. (request_id: ...)
Root Cause
open-sse/config/providers/registry/deepseek/index.ts:deepseekProviderlacksrequiresReasoningContentEcho: true.open-sse/utils/reasoningPlaceholder.ts:requiresReasoningContentPresencechecksxiaomi-mimoandopencode-*, but omitsdeepseek.
Fix
- Enable
requiresReasoningContentEcho: trueondeepseekProvider. - Include
deepseekinrequiresReasoningContentPresenceso the placeholder is injected on replay cache misses.
Activity
0No activity yet.