mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 16:06:08 +00:00
Persist models declared by standalone image and search requests without routing them through the text model catalog. Extract image token usage before delivering the unchanged JSON response, preserving unknown counts and upstream totals without double-counting image token details. Validation: 1,474 related backend tests, workspace rustfmt and strict Clippy passed. One authorized live gpt-image-2 generation reported 18 input, 229 output and 247 total tokens, matching the canonical usage exactly. Search responses inspected in official source and production logs did not report usage, so their token counts remain unknown. Co-authored-by: Codex <noreply@openai.com>