Skip to content

Add gemini-3.1-pro-preview and flash-lite-3.1 model aliases#5171

Open
Cyberfilo wants to merge 2 commits into
Aider-AI:mainfrom
Cyberfilo:feat/add-gemini-3-1-aliases
Open

Add gemini-3.1-pro-preview and flash-lite-3.1 model aliases#5171
Cyberfilo wants to merge 2 commits into
Aider-AI:mainfrom
Cyberfilo:feat/add-gemini-3-1-aliases

Conversation

@Cyberfilo
Copy link
Copy Markdown
Contributor

Summary

Adds two short CLI aliases to `MODEL_ALIASES` in `aider/models.py` for the recently-released Gemini 3.1 family:

Alias Target
`gemini-3.1-pro-preview` `gemini/gemini-3.1-pro-preview`
`flash-lite-3.1` `gemini/gemini-3.1-flash-lite`

Mirrors the existing `gemini-3-pro-preview` -> `gemini/gemini-3-pro-preview` alias pattern.

Why short aliases

Users typically pass aliases on the CLI (`aider --model flash-lite`) rather than the full provider-prefixed name. The Gemini 3.1 family had no short alias, so the new variants weren't reachable without typing the full `gemini/gemini-3.1-*` name.

Existing behaviour preserved

  • `flash-lite` (existing) still points at `gemini/gemini-2.5-flash-lite`. Bumping it would silently switch users from 2.5 to 3.1, which is a behaviour change for anyone scripted around the current alias. Users opt in to 3.1 via the new explicit `flash-lite-3.1` alias.
  • The `gemini` umbrella alias is intentionally left at `gemini/gemini-3-pro-preview`. Same reasoning.

Test plan

  • Python: `python -c "from aider.models import MODEL_ALIASES; print(MODEL_ALIASES['gemini-3.1-pro-preview'], MODEL_ALIASES['flash-lite-3.1'])"` resolves both new aliases.
  • Diff: 2 lines added in models.py + 1 line added in HISTORY.md. No existing behaviour modified.

Cyberfilo added 2 commits May 22, 2026 12:10
The Gemini 3.1 Pro Preview and Flash-Lite models were recently added
to litellm's pricing JSON (and have their `model-settings.yml` entries
in this repo). Adds short CLI aliases for both so users can pass
`--model gemini-3.1-pro-preview` or `--model flash-lite-3.1` instead
of the full `gemini/gemini-3.1-pro-preview` / `gemini/gemini-3.1-flash-lite`
provider-prefixed names.

The existing `gemini-3-pro-preview` -> `gemini/gemini-3-pro-preview`
alias establishes the pattern; this mirrors it for the 3.1 family.
The existing `flash-lite` alias (which points to 2.5) is left
unchanged so existing shell history and configs keep working — users
who want the new 3.1 variant explicitly pass `flash-lite-3.1`.

The `gemini` umbrella alias is intentionally left pointing at
`gemini/gemini-3-pro-preview`; bumping it to 3.1-pro-preview would
be a breaking change for anyone scripted against the current
behaviour, so users opt in via the new explicit aliases.
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