From e5e1d1b89eb29ae25523bcb2016f3184e3b94d1e Mon Sep 17 00:00:00 2001 From: Filippo Mattia Menghi Date: Fri, 22 May 2026 12:10:40 +0200 Subject: [PATCH 1/2] Add gemini-3.1-pro-preview and flash-lite-3.1 model aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- HISTORY.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 3d523bdccde..80b576eb87d 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,7 +2,8 @@ ### main branch -- Expanded `ANTHROPIC_MODELS` list with Claude Opus 4.1/4.5/4.6/4.7 dated variants and Claude Sonnet 3.7 so the Anthropic API key auto-detection (`models.sanity_check_models`) recognises them. +- Added `gemini-3.1-pro-preview` and `flash-lite-3.1` model aliases pointing at `gemini/gemini-3.1-pro-preview` and `gemini/gemini-3.1-flash-lite` respectively. +- Added `gemini-3.1-pro-preview` and `flash-lite-3.1` model aliases pointing at `gemini/gemini-3.1-pro-preview` and `gemini/gemini-3.1-flash-lite` respectively. - Added support for Claude 4.5/4.6 models and updated model aliases (sonnet/haiku/opus). - Expanded Gemini model support with 2.5 Flash and Flash‑Lite, added Gemini 3 preview models, and updated the flash alias to gemini/gemini-flash-latest. - Added DeepSeek Reasoner model and updated DeepSeek model metadata with costs and prompt caching. From be26501a1708b0bd259aa14f11a1e91f2ab67d61 Mon Sep 17 00:00:00 2001 From: Filippo Mattia Menghi Date: Fri, 22 May 2026 12:11:02 +0200 Subject: [PATCH 2/2] Add gemini-3.1 aliases to MODEL_ALIASES dict --- aider/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/models.py b/aider/models.py index a6f4559d58f..7db0d5e8bc5 100644 --- a/aider/models.py +++ b/aider/models.py @@ -116,6 +116,8 @@ "r1": "deepseek/deepseek-reasoner", "gemini-2.5-pro": "gemini/gemini-2.5-pro", "gemini-3-pro-preview": "gemini/gemini-3-pro-preview", + "gemini-3.1-pro-preview": "gemini/gemini-3.1-pro-preview", + "flash-lite-3.1": "gemini/gemini-3.1-flash-lite", "gemini": "gemini/gemini-3-pro-preview", "gemini-exp": "gemini/gemini-2.5-pro-exp-03-25", "grok3": "xai/grok-3-beta",