-
Notifications
You must be signed in to change notification settings - Fork 429
fix(kits): add Gemini 3.x before 2.5 retirement #2943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: kits
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,6 +37,11 @@ const TRANSLATION_PROVIDER_OPTIONS = [ | |||||||||||||||||
| "gemini-vertexai", | ||||||||||||||||||
| ] as const; | ||||||||||||||||||
| const GEMINI_MODEL_OPTIONS = [ | ||||||||||||||||||
| "gemini-3.1-pro-preview", | ||||||||||||||||||
| "gemini-3.6-flash", | ||||||||||||||||||
| "gemini-3.5-flash", | ||||||||||||||||||
| "gemini-3.5-flash-lite", | ||||||||||||||||||
| "gemini-3.1-flash-lite", | ||||||||||||||||||
|
Comment on lines
+40
to
+44
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||||||||||||||
| "gemini-2.5-pro", | ||||||||||||||||||
| "gemini-2.5-flash", | ||||||||||||||||||
| "gemini-2.5-flash-lite", | ||||||||||||||||||
|
|
@@ -54,7 +59,7 @@ const params = { | |||||||||||||||||
| input: select([...TRANSLATION_PROVIDER_OPTIONS]), | ||||||||||||||||||
| }), | ||||||||||||||||||
| geminiModel: defineString("GEMINI_MODEL", { | ||||||||||||||||||
| default: "gemini-2.5-flash", | ||||||||||||||||||
| default: "gemini-3.6-flash", | ||||||||||||||||||
| input: select([...GEMINI_MODEL_OPTIONS]), | ||||||||||||||||||
| }), | ||||||||||||||||||
| }; | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since
createModelReferencehas been updated to never throw and always return aModelReference(falling back to dynamic resolution), the check!!GenkitDiscussionClient.createModelReference(...)inshouldUseGenkitClientwill always evaluate totrue.We can simplify
shouldUseGenkitClientto only check the candidate count, avoiding redundant model reference creation: