9router/open-sse/handlers/chatCore
fjia 411a589781 fix(claude-to-openai): handle OpenAI-format responses in non-streaming path
Some providers (e.g. xiaomi-tokenplan -claude models) return OpenAI-format
responses even when request was translated to Claude. Early-return now detects
choices[]. Also strip reasoning_content only when content is non-empty so
thinking models keep their only output.

Closes #1836

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 09:43:58 +07:00
..
nonStreamingHandler.js fix(claude-to-openai): handle OpenAI-format responses in non-streaming path 2026-06-17 09:43:58 +07:00
requestDetail.js Feat : console log 2026-03-02 09:31:16 +07:00
sseToJsonHandler.js refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00
streamingHandler.js refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00