mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 13:52:09 +03:00
The executor's non-streaming path collects the upstream SSE and returns a finished OpenAI chat.completion payload. The test still treated the body as raw SSE and piped it through parseSSEToGeminiResponse, which correctly returns null for non-SSE input — failing the release-tip unit suite. Verified the production output is exactly what the test's own assertions expect (content 'Hello again', usage 2/3/5, finish_reason stop, 2 fetch calls incl. the 429 retry), so this realigns the test with the real contract rather than weakening it: 3 pass/1 fail -> 4 pass/0 fail.