feat: update Gemini models - remove deprecated and add 2.5 Flash-Lite #4681
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.
Description
This PR addresses a critical issue where users selecting certain Gemini models would encounter API errors because these experimental models have been discontinued by Google.
Problem:
Three experimental Gemini models (
gemini-1.5-flash-8b-exp-0827
,gemini-1.5-flash-exp-0827
,gemini-1.5-pro-exp-0827
) are no longer available via Google's API, causing 404/400 errors when users attempt to use them.Solution:
gemini-2.5-flash-lite-preview-06-17
, Google's newest cost-efficient model with verified pricing ($0.10 input / $0.40 output per 1M tokens)Test Procedure
Testing approach:
Type of Change
Pre-flight Checklist
npm test
) and code is formatted and linted (npm run format && npm run lint
)npm run changeset
(required for user-facing changes)Screenshots
Additional Notes
References:
Important
Update Gemini models by removing deprecated ones and adding
gemini-2.5-flash-lite-preview-06-17
with pricing.gemini-1.5-flash-8b-exp-0827
,gemini-1.5-flash-exp-0827
,gemini-1.5-pro-exp-0827
fromgeminiModels
inapi.ts
.gemini-2.5-flash-lite-preview-06-17
togeminiModels
inapi.ts
with pricing details.gemini-2.5-flash-lite-preview-06-17
priced at $0.10 input / $0.40 output per 1M tokens.This description was created by
for bb8087d. You can customize this summary. It will automatically update as commits are pushed.