-
Notifications
You must be signed in to change notification settings - Fork 3.1k
fix: update deprecated Gemini model names to supported versions #213
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: main
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,7 +26,7 @@ export const InputForm: React.FC<InputFormProps> = ({ | |||||
| }) => { | ||||||
| const [internalInputValue, setInternalInputValue] = useState(""); | ||||||
| const [effort, setEffort] = useState("medium"); | ||||||
| const [model, setModel] = useState("gemini-2.5-flash-preview-04-17"); | ||||||
| const [model, setModel] = useState("gemini-2.5-flash"); | ||||||
|
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. |
||||||
|
|
||||||
| const handleInternalSubmit = (e?: React.FormEvent) => { | ||||||
| if (e) e.preventDefault(); | ||||||
|
|
@@ -136,23 +136,15 @@ export const InputForm: React.FC<InputFormProps> = ({ | |||||
| </SelectTrigger> | ||||||
| <SelectContent className="bg-neutral-700 border-neutral-600 text-neutral-300 cursor-pointer"> | ||||||
| <SelectItem | ||||||
| value="gemini-2.0-flash" | ||||||
| className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer" | ||||||
| > | ||||||
| <div className="flex items-center"> | ||||||
| <Zap className="h-4 w-4 mr-2 text-yellow-400" /> 2.0 Flash | ||||||
| </div> | ||||||
| </SelectItem> | ||||||
| <SelectItem | ||||||
| value="gemini-2.5-flash-preview-04-17" | ||||||
| value="gemini-2.5-flash" | ||||||
|
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 model identifier
Suggested change
|
||||||
| className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer" | ||||||
| > | ||||||
| <div className="flex items-center"> | ||||||
| <Zap className="h-4 w-4 mr-2 text-orange-400" /> 2.5 Flash | ||||||
| </div> | ||||||
| </SelectItem> | ||||||
| <SelectItem | ||||||
| value="gemini-2.5-pro-preview-05-06" | ||||||
| value="gemini-2.5-pro" | ||||||
|
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. |
||||||
| className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer" | ||||||
| > | ||||||
| <div className="flex items-center"> | ||||||
|
|
||||||
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.
The model name
gemini-2.5-flashis incorrect. Google's current stable models are in the1.5series (e.g.,gemini-1.5-flash). Using a non-existent model name will result in API 404 errors. Additionally, please ensure thatreflection_modelandanswer_model(lines 19 and 26) are also updated to use the correct1.5versions for consistency.