mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-06 07:12:12 +03:00
Free-plan Codex accounts (workspacePlanType === "free", from the OAuth id_token) cannot run the server-side image_generation hosted tool, but the Codex CLI injects it into every Responses request — causing an upstream 400. normalizeCodexTools now drops image_generation when the connection is a free-plan account; paid plans keep it. Mirrors CLIProxyAPI's isCodexFreePlanAuth guard. Found during the #2980 (Codex OAuth compat) analysis against CLIProxyAPI.