9router/open-sse/translator/request
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
..
antigravity-to-openai.js feat(antigravity): integrate Antigravity tool with MITM support and update CLI tools 2026-02-08 16:28:13 +07:00
claude-to-openai.js Fix cloud 2026-01-29 18:07:28 +07:00
gemini-to-openai.js Fix cloud 2026-01-29 18:07:28 +07:00
openai-responses.js Fix: Codex image support - convert image_url to input_image format (#236) 2026-03-05 10:31:50 +07:00
openai-to-claude.js Fix : Claude OAuth 2026-03-03 14:46:05 +07:00
openai-to-cursor.js Fix MITM 2026-02-23 21:56:40 +07:00
openai-to-gemini.js refactor: update Antigravity model configurations and pricing 2026-02-20 17:52:15 +07:00
openai-to-kiro.js Fix MITM on window 2026-02-28 10:04:57 +07:00
openai-to-kiro.old.js ok 2026-01-27 10:49:16 +07:00