9router/open-sse/handlers
Omar Nahhas Sanchez 878cdf302b
fix: only strip reasoning_content when content is non-empty (#542)
sseToJsonHandler.js unconditionally deleted reasoning_content from all
non-streaming responses (added for Firecrawl SDK compatibility). This
breaks thinking models (Qwen3.5, Claude extended thinking, etc.) where
the model may use all tokens for reasoning, leaving content empty.

When reasoning_content is stripped in that case, the response appears
completely empty to the client.

Fix: only strip reasoning_content when the response also has non-empty
content, so that reasoning output is preserved when it is the only
useful output.

Co-authored-by: Agent Zero <agent@agent-zero.local>
2026-04-10 10:28:58 +07:00
..
chatCore fix: only strip reasoning_content when content is non-empty (#542) 2026-04-10 10:28:58 +07:00
chatCore.js Fix bug strip image 2026-04-07 10:18:59 +07:00
embeddingsCore.js Refactor config 2026-03-12 16:20:46 +07:00
responsesHandler.js - Refactor chatCore.js to streamline imports and remove unused functions. 2026-02-27 11:15:12 +07:00
ttsCore.js Feat : tts 2026-04-10 10:17:53 +07:00