fix: add Gemini 3.x before 2.5 retirement - #2942
Open
CorieW wants to merge 3 commits into
Open
Conversation
Translate and resize-images pin Gemini 2.5, which shuts down in October 2026. Default to 3.6 Flash.
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Gemini models used in the firestore-translate-text and storage-resize-images extensions. Specifically, it introduces Gemini 3.6 Flash, 3.1 Flash Lite, and 3.1 Pro Preview model options, setting Gemini 3.6 Flash as the new default model. It also updates the content filter in the image resizing extension to use Gemini 3.6 Flash, and updates the corresponding documentation, configuration files, and tests. There are no review comments, so I have no feedback to provide.
Picker listed every 2.5 model; add 3.5 Flash and Flash Lite to match the current Gemini set.
4 tasks
Similar price to previous gemini-2.5-flash and better quality. Avoid 3.5-flash-lite and higher cost.
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.
Summary
firestore-translate-textand default to 3.6 Flash. Gemini 2.5 options remain until they retire in October 2026.storage-resize-imagescontent filter fromgemini-2.5-flashtogemini-3.1-flash-lite.firestore-translate-textto 0.1.31 andstorage-resize-imagesto 0.3.7, with CHANGELOG and generated README updates.Why
gemini-3.1-flash-lite(notgemini-3.5-flash-liteor higher)The resize content filter is a high-volume yes/no image check, previously hardcoded to
gemini-2.5-flash. We pickedgemini-3.1-flash-litebecause it is similar in price to that previous default ($0.25/$1.50 vs $0.30/$2.50 per 1M tokens) and performs better (Google: similar or better quality than 2.5 Flash, ~2.5× faster time-to-first-token).gemini-3.5-flash-liteis the same sticker as 2.5 Flash;gemini-3.5-flashandgemini-3.6-flashare about 5× input.Test plan
gemini-3.6-flashstorage-resize-imagescontent-filter unit tests