9router/open-sse/translator
Rodrigo Rodrigues Costa 40a53fbd33
Fix: Codex image support - convert image_url to input_image format (#236)
Cursor sends images as Chat Completions format:
  { type: "image_url", image_url: { url: "data:...", detail: "auto" } }

But Codex Responses API requires:
  { type: "input_image", image_url: "data:..." }

- openai-responses.js: bidirectional conversion image_url <-> input_image
- responsesApiHelper.js: input_image -> image_url in Responses->Chat path
- codex.js: safety net conversion in executor before sending to Codex API

Note: Cursor has a known bug where images bypass the Override OpenAI Base URL
and are sent directly to api.openai.com. This fix is effective for other clients
(curl, Codex CLI, Claude Code) that route through the proxy correctly.

Made-with: Cursor
2026-03-05 10:31:50 +07:00
..
helpers Fix: Codex image support - convert image_url to input_image format (#236) 2026-03-05 10:31:50 +07:00
request Fix: Codex image support - convert image_url to input_image format (#236) 2026-03-05 10:31:50 +07:00
response Fixed Codex 2026-02-21 14:36:06 +07:00
formats.js Fix AG MITM 2026-03-01 18:40:55 +07:00
index.js Fix : Claude OAuth 2026-03-03 14:46:05 +07:00