9router/open-sse
decolua 3d4dbdc0e7 fix(chat): pick last non-empty message for Codex Responses SSE
Root cause: Codex/OpenAI Responses streams multiple alternating reasoning and
message output items. The first message block often has empty output_text; the
visible answer lives in a later message. Previous code used output.find() which
always picked the first (empty) message block.

Fix: walk message items from end and use the last message whose extracted text
is non-empty; fall back to final message if all are empty.

Note: Removed debug logging code from original PR #383 to keep implementation clean.

Co-authored-by: lokinh <locnh@uniultra.xyz>
Made-with: Cursor
2026-03-23 09:29:31 +07:00
..
config feat: add MiniMax M2.7 model support (#357) 2026-03-19 15:34:36 +07:00
executors Update Antigravity provider config and headers 2026-03-17 10:12:17 +07:00
handlers fix(chat): pick last non-empty message for Codex Responses SSE 2026-03-23 09:29:31 +07:00
services fix: combo 503 cooldown wait before fallthrough + 406 on disabled creds (#382) 2026-03-23 09:24:58 +07:00
transformer feat: enhance request handling and error management in chatCore and streamToJsonConverter 2026-02-15 12:02:53 +07:00
translator fix: add missing type:string to enum properties in Gemini tool schema translation (#380) 2026-03-23 09:20:55 +07:00
utils refactor: update MITM bypass logic and enhance combo name validation 2026-03-19 22:47:32 +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