-
Notifications
You must be signed in to change notification settings - Fork 14.5k
fix(patch): cherry-pick d96bd05 to release/v0.29.6-pr-19867 to patch version v0.29.6 and create version 0.29.7 #20104
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
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 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,9 +5,9 @@ | |||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| export const PREVIEW_GEMINI_MODEL = 'gemini-3-pro-preview'; | ||||||||||||||||||||||||||||||
| export const PREVIEW_GEMINI_3_1_MODEL = 'gemini-3.1-pro-preview'; | ||||||||||||||||||||||||||||||
| export const PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL = | ||||||||||||||||||||||||||||||
| 'gemini-3.1-pro-preview-customtools'; | ||||||||||||||||||||||||||||||
| export const PREVIEW_GEMINI_FLASH_MODEL = 'gemini-3-flash-preview'; | ||||||||||||||||||||||||||||||
| export const DEFAULT_GEMINI_MODEL = 'gemini-2.5-pro'; | ||||||||||||||||||||||||||||||
| export const DEFAULT_GEMINI_FLASH_MODEL = 'gemini-2.5-flash'; | ||||||||||||||||||||||||||||||
|
|
@@ -134,6 +134,7 @@ | |||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||
| model === PREVIEW_GEMINI_MODEL || | ||||||||||||||||||||||||||||||
| model === PREVIEW_GEMINI_3_1_MODEL || | ||||||||||||||||||||||||||||||
| model === PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL || | ||||||||||||||||||||||||||||||
| model === PREVIEW_GEMINI_FLASH_MODEL || | ||||||||||||||||||||||||||||||
| model === PREVIEW_GEMINI_MODEL_AUTO | ||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||
|
Comment on lines
134
to
140
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
|
||||||||||||||||||||||||||||||
|
|
@@ -167,7 +168,7 @@ | |||||||||||||||||||||||||||||
| * @returns True if the model is a Gemini-2.x model. | ||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| export function isGemini2Model(model: string): boolean { | ||||||||||||||||||||||||||||||
| return /^gemini-2(\.|$)/.test(model); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
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.
To ensure that
isPreviewModelcorrectly handles aliases, we should add test cases for 'pro' and 'auto'. As per repository guidelines, prefer using hardcoded literal values in tests instead of importing constants to ensure tests are self-contained and less brittle.References