9router/open-sse
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
..
config Feat : tts 2026-04-10 10:17:53 +07:00
executors Fix bug 2026-04-06 17:32:44 +07:00
handlers fix: only strip reasoning_content when content is non-empty (#542) 2026-04-10 10:28:58 +07:00
services Feat : tts 2026-04-10 10:17:53 +07:00
transformer feat: enhance request handling and error management in chatCore and streamToJsonConverter 2026-02-15 12:02:53 +07:00
translator fix: merge consecutive userInputMessages in openai-to-kiro translator (closes #510) (#524) 2026-04-08 15:38:28 +07:00
utils fix: update Cursor client version to 3.1.0 for Composer 2 compatibility (#525) 2026-04-08 15:37:51 +07:00
.npmignore Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00
index.js Refactor config 2026-03-12 16:20:46 +07:00