mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 01:32:22 +03:00
When clients consume the OpenAI-compatible stream synthesised from Claude-native SSE, the absence of an explicit "thinking complete" signal on `content_block_stop` left UIs (Claude Code, Cursor, etc.) stuck on the "thinking" indicator after the upstream stream finished. Emit a single `content: "</think>"` chunk on stop — matching the convention already used by openai-responses.ts and responsesTransformer.ts which split reasoning from final content on that exact marker. `reasoning_content` consumers are unaffected since the streamed deltas already reached them. Co-authored-by: Quan <quanle96@outlook.com> Inspired-by: https://github.com/decolua/9router/pull/454