Skip to content

feat: add GPT-5.6/5.5/5.4 model support for current ChatGPT backend - #129

Open
GustavMhaler wants to merge 1 commit into
numman-ali:mainfrom
GustavMhaler:feat/gpt-5.6-models-and-image-gen-support
Open

GustavMhaler wants to merge 1 commit into
numman-ali:mainfrom
GustavMhaler:feat/gpt-5.6-models-and-image-gen-support

Conversation

@GustavMhaler

Copy link
Copy Markdown

The ChatGPT Codex backend has migrated to the gpt-5.6 family (gpt-5.6-luna/terra/sol), gpt-5.5 and gpt-5.4-mini. The current plugin normalizes these new model names down to the deprecated gpt-5.1, which the backend rejects with: The gpt-5.1 model is not supported when using Codex with a ChatGPT account.

Changes:

  • Add model mappings for gpt-5.6-luna/terra/sol, gpt-5.5, gpt-5.4-mini (+ reasoning variants)
  • Fix normalizeModel fallback pattern order so new models pass through unchanged
  • Extend ModelFamily type with new families and map them to the gpt-5.1 prompt/instructions files
  • Add new model presets to config/opencode-modern.json and config/opencode-legacy.json

Verified working with ChatGPT Plus OAuth: chat requests and the gpt-image-1.5 image generation endpoint both succeed.

- Add model mappings for gpt-5.6-luna/terra/sol, gpt-5.5, gpt-5.4-mini
- Fix normalizeModel fallback so new models aren't downgraded to deprecated gpt-5.1
- Extend ModelFamily type and prompt/cache file mappings for new families
- Update modern and legacy config presets with new models
PaoloC68 added a commit to PaoloC68/opencode-openai-codex-auth that referenced this pull request Sep 20, 2026
getModelFamily enumerated 5.2 through 5.5 and fell through to a gpt-5.1
catch-all, so gpt-5.6-sol/terra/luna and gpt-6-astra were each sent
gpt_5_1_prompt.md while gpt-5.4 and gpt-5.5 correctly received
gpt_5_2_prompt.md. The newest models were getting the oldest instructions.

This is the same catch-all-default failure that silently downgraded astra
in normalizeModel, one layer further down, so the comment now states the
invariant: any family omitted here is served the oldest prompt in the repo.

Found while reviewing upstream numman-ali#129,
which extends ModelFamily for the 5.6 tiers. No new prompt files exist for
5.6 or 6, so they join the existing gpt-5.2 family rather than adding
entries that point at the same file.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant