Files
sub2api/backend
Shumin 9b5407449c fix(openai): return JSON for incomplete/cancelled non-stream Responses
When a non-streaming /v1/responses request is aggregated from upstream
SSE and the stream ends with response.incomplete (e.g. max_output_tokens)
or response.cancelled instead of response.completed, the SSE-to-JSON
handlers fell back to relaying the raw SSE body. Use the terminal event's
response object as the final JSON (keeping status/incomplete_details) in
both handlePassthroughSSEToJSON and handleSSEToJSON. Usage is still
recorded. extractCodexFinalResponse is unchanged.

Refs #7978
2026-10-09 17:01:53 -04:00
..
…