fix: add Gemini 3.x before 2.5 retirement - #1133
Open
CorieW wants to merge 1 commit into
Open
Conversation
Chatbot default and Genkit allowlist still pin retiring Gemini 2.5 ids; vector search still uses retired gemini-embedding-001. Parity with firebase/extensions#2943.
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-genai-chatbottogemini-3.6-flash. Genkit no longer throwsModel not found.for unknown ids — falls through togoogleAI.model()/vertexAI.model(). Known list includes Gemini 3.6 / 3.5 / 3.1 plus 2.5 until October 2026.firestore-vector-searchGemini/Vertex embedder usesgemini-embedding-2(Gemini API retiredgemini-embedding-001on 14 Jul 2026). Existing Gemini/Vertex indexes need a re-embed. Flash completion IDs are not embedders.Parity with firebase/extensions#2943. Translate and resize live in that repo (#2942), not here. Resize content filter there uses
gemini-3.1-flash-lite.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-flashgemini-3.6-flashand with an unlisted current model idgemini-embedding-2