Skip to content

fix: update deprecated gemini-2.0-flash to gemini-2.5-flash#2

Open
adithya-n05 wants to merge 1 commit intocactus-compute:mainfrom
adithya-n05:fix/update-deprecated-gemini-model
Open

fix: update deprecated gemini-2.0-flash to gemini-2.5-flash#2
adithya-n05 wants to merge 1 commit intocactus-compute:mainfrom
adithya-n05:fix/update-deprecated-gemini-model

Conversation

@adithya-n05
Copy link

Fixes #1

Problem

The gemini-2.0-flash model used in main.py has been deprecated by Google and returns a 404 error for new users:

google.genai.errors.ClientError: 404 NOT_FOUND. 
'This model models/gemini-2.0-flash is no longer available to new users.'

Solution

Updated the model from gemini-2.0-flash to gemini-2.5-flash, which is the current stable model with best price-performance for reasoning tasks.

Changes

- model="gemini-2.0-flash",
+ model="gemini-2.5-flash",

Testing

Tested locally - the cloud fallback now works correctly with the new model.

The gemini-2.0-flash model has been deprecated and returns a 404 error
for new users. Updated to gemini-2.5-flash which is the current stable
model with best price-performance for reasoning tasks.

Signed-off-by: Adithya Narayanan <adithya.narayanan01@gmail.com>
Copilot AI review requested due to automatic review settings February 21, 2026 01:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Gemini Cloud fallback in main.py to use a non-deprecated model so new users no longer hit a 404 when calling the Google GenAI API.

Changes:

  • Switch Gemini model from gemini-2.0-flash to gemini-2.5-flash in the cloud generation path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: gemini-2.0-flash model is deprecated and returns 404 error

2 participants