9router/open-sse/translator/helpers
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
..
claudeHelper.js Fix : Claude OAuth 2026-03-03 14:46:05 +07:00
geminiHelper.js Fixed Codex 2026-02-21 14:36:06 +07:00
maxTokensHelper.js chore: update package version to 0.2.71 and enhance MITM tools 2026-02-09 09:58:24 +07:00
openaiHelper.js feat(executors): Improved UI components for displaying provider limits and usage statistics in the dashboard. 2026-02-05 18:38:50 +07:00
responsesApiHelper.js Fix: Codex image support - convert image_url to input_image format (#236) 2026-03-05 10:31:50 +07:00
toolCallHelper.js Update jsconfig.json and package.json to correct open-sse path references from relative to local directory. 2026-01-05 10:37:09 +07:00