Files
gemini-cli/packages/core
gemini-cli[bot] f737a7925f fix(core): add gemini-2.5-flash-lite to default fallback chain
This PR updates the default model policy chain to include `gemini-2.5-flash-lite` as the final resort.

Currently, the chain only includes `gemini-2.5-pro` and `gemini-2.5-flash`. Free-tier users have significantly more quota (1,000 RPD) for Flash-Lite compared to Pro (100 RPD) and Flash (250 RPD). When both Pro and Flash quotas are exhausted, the CLI fails hard despite available Flash-Lite capacity.

Changes:
- Updated `getModelPolicyChain` in `packages/core/src/availability/policyCatalog.ts` to include `DEFAULT_GEMINI_FLASH_LITE_MODEL`.
- Updated tests in `packages/core/src/availability/policyCatalog.test.ts` to reflect the new chain length.

Fixes #26841

cc @adamfweidman @davidapierce
2026-05-13 23:24:54 +00:00
..