Skip to content

[Codex] Improve handling of models not supported on ChatGPT cookies (gpt-5.3-codex-spark) #284

@GofMan5

Description

@GofMan5

Description

When trying to use the model gpt-5.3-codex-spark through the Codex provider with a regular ChatGPT account (cookies), the request fails with a raw 400 error from the backend:

[2026-02-24 04:30:42] [b3e97ee7] [debug] [codex_executor.go:360] request error, error status: 400, error message: {"detail":"The 'gpt-5.3-codex-spark' model is not supported when using Codex with a ChatGPT account."}

Expected behavior

The proxy should:

  1. Pre-check model compatibility with the current auth type (ChatGPT cookies vs API key / Plus / Team etc.).
  2. Return a clear, user-friendly error instead of forwarding the raw backend message.
  3. Optionally suggest an alternative model or provider (or do automatic fallback where possible).

Context (after full repo review)

Proposed solution

Add a compatibility check in codex_executor.go (or better at the model registry / provider registration level) for supported account types per model and return a clean 400/422 error with helpful message, for example:

Model gpt-5.3-codex-spark is not supported when using Codex with a regular ChatGPT account (cookies). Requires a Plus/Team/Enterprise account or use a different provider.

I can immediately provide:

  • full failing request payload
  • my config.yaml
  • exact commit I’m testing on

Happy to test any patch and review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions