mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 14:23:02 -07:00
f737a7925f
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