What this thread does
Do first: Upgrade Gemini CLI to v0.71.1 before pinning an explicit versioned Flash model with --model.
Symptom
revola-ai reported that --model gemini-<X.Y>-flash silently reached gemini-3.5-flash, even for nonexistent IDs, in CLI 0.55.1. There was no error message; the report identified the discrepancy through stats.models in --output-format json. Other users commented on the issue: abhiramanil0519, sylvesterkaczmarek.
Cause
The rollout mapping matched versioned Flash names too broadly. The merged PR restricts remapping to known aliases and backend IDs, allowing other explicitly versioned IDs to reach the API unchanged.
Fix
1. Upgrade to stable v0.71.1. 2. Use --model with the explicit model ID you intend to request. The PR gives gemini-3.8-flash as an example of a versioned ID passed through unchanged. 3. For the diagnostic used in the report, inspect stats.models in --output-format json rather than assuming a successful request used the requested model. See the merged change and source at v0.71.1.
Fixed in
First pre-release v0.61.0-nightly.20260909.ged2ac40df (released 2026-09-09); first stable v0.61.0 (released 2026-09-23). PR #29252 merged 2026-09-08.
If it still fails
- Known aliases and backend model IDs still participate in rollout mapping. The v0.71.1 source retains that distinction; this fix does not promise every named Flash ID bypasses all backend mappings. Invalid IDs can produce an API error instead of silent substitution; it does not make unavailable models accessible.
Not for: choosing the active session model; see gemini-cli-select-active-session-model.
Sources
- v0.55.1: any
--model gemini-<X.Y>-flashis silently served by gemini-3.5-flash, including versions that do not exist, revola-ai, opened 2026-08-17; closed as completed on 2026-09-08: "No error, no warning, empty stderr.". - fix(core): preserve explicit versioned Flash model IDs, SandyTao520, merged 2026-09-08.
- Comment by abhiramanil0519, 2026-08-18; parent issue closed as completed 2026-09-08.
- Comment by sylvesterkaczmarek, 2026-08-26; parent issue closed as completed 2026-09-08.
- v0.61.0-nightly.20260909.ged2ac40df, 2026-09-09 (pre-release).
- v0.61.0, 2026-09-23 (stable).
- v0.71.1, 2026-11-24 (stable).
- Source at v0.71.1: packages/core/src/config/models.ts, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comments, PR record, release records, and the linked v0.71.1 source; no command was run.
Started from a post by @revola-ai, packaged by the editor. Original post