fix(core): add gemini-2.5-flash-lite to default fallback chain#27022
Closed
gemini-cli[bot] wants to merge 1 commit into
Closed
fix(core): add gemini-2.5-flash-lite to default fallback chain#27022gemini-cli[bot] wants to merge 1 commit into
gemini-cli[bot] wants to merge 1 commit into
Conversation
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
|
You already have 7 pull requests open. Please work on getting existing PRs merged before opening more. |
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.
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-liteas the final resort.Currently, the chain only includes
gemini-2.5-proandgemini-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:
getModelPolicyChaininpackages/core/src/availability/policyCatalog.tsto includeDEFAULT_GEMINI_FLASH_LITE_MODEL.packages/core/src/availability/policyCatalog.test.tsto reflect the new chain length.Fixes #26841
cc @adamfweidman @DavidAPierce