Skip to content

Add model settings for GPT-5.4 Mini and GPT-5.4 Nano#5167

Open
Cyberfilo wants to merge 2 commits into
Aider-AI:mainfrom
Cyberfilo:feat/add-gpt-5-4-mini-nano-models
Open

Add model settings for GPT-5.4 Mini and GPT-5.4 Nano#5167
Cyberfilo wants to merge 2 commits into
Aider-AI:mainfrom
Cyberfilo:feat/add-gpt-5-4-mini-nano-models

Conversation

@Cyberfilo
Copy link
Copy Markdown
Contributor

Summary

Adds entries to `aider/resources/model-settings.yml` for the GPT-5.4 Mini and GPT-5.4 Nano model variants:

Model Source of weak model
`gpt-5.4-mini` `gpt-5-nano`
`gpt-5.4-mini-2026-03-17` `gpt-5-nano-2025-08-07`
`gpt-5.4-nano` `gpt-5-nano`
`gpt-5.4-nano-2026-03-17` `gpt-5-nano-2025-08-07`

These models exist in litellm's pricing JSON (aider's upstream source for model metadata via `ModelInfoManager.MODEL_INFO_URL`) but were missing the project-side settings. Without them, aider falls back to defaults that don't match the 5.x family conventions (`edit_format: diff`, repo map enabled, `reasoning_effort` accepted, no temperature).

Settings shape

Mirrors the existing `gpt-5-mini` / `gpt-5-nano` block exactly. Mini entries route to `gpt-5-nano` for weak/editor model duties; pinned-date variants route to the pinned nano variant.

Test plan

  • YAML validity: `python -c "import yaml; yaml.safe_load(open('aider/resources/model-settings.yml'))"` parses cleanly (361 entries).
  • Diff is purely additive: 28 lines of YAML + 1 line in HISTORY.md under `### main branch`.

Cyberfilo added 2 commits May 22, 2026 11:29
Litellm's pricing JSON (aider's upstream source via ModelInfoManager)
ships entries for gpt-5.4-mini, gpt-5.4-mini-2026-03-17, gpt-5.4-nano,
and gpt-5.4-nano-2026-03-17. Aider was missing the project-side settings
(edit_format, weak_model_name, accepts_settings, use_temperature), so
defaults applied even though the 5.4 family expects diff edit format and
reasoning_effort support like its larger siblings.

Mirrors the existing gpt-5-mini / gpt-5-nano block exactly — same
edit_format ("diff"), repo map enabled, reasoning_effort accepted, and
no temperature. Mini entries route to gpt-5-nano for weak/editor model
duties; pinned-date entries route to the pinned nano variant.

Also adds a HISTORY.md entry under the main branch section.
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