Add gemini-3.1-pro-preview and flash-lite-3.1 model aliases#5171
Open
Cyberfilo wants to merge 2 commits into
Open
Add gemini-3.1-pro-preview and flash-lite-3.1 model aliases#5171Cyberfilo wants to merge 2 commits into
Cyberfilo wants to merge 2 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two short CLI aliases to `MODEL_ALIASES` in `aider/models.py` for the recently-released Gemini 3.1 family:
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
Test plan