Description
The main.py uses gemini-2.0-flash as the cloud model, but this model has been deprecated by Google and is no longer available to new users.
Error
google.genai.errors.ClientError: 404 NOT_FOUND. {'error': {'code': 404, 'message': 'This model models/gemini-2.0-flash is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.', 'status': 'NOT_FOUND'}}
Location
main.py line 75:
gemini_response = client.models.generate_content(
model="gemini-2.0-flash", # <-- deprecated
...
)
Suggested Fix
Update to gemini-2.5-flash which is the current stable model:
Available Alternatives
| Model |
Description |
gemini-2.5-flash |
Best price-performance, stable (recommended) |
gemini-2.5-flash-lite |
Fastest, most budget-friendly |
gemini-2.5-pro |
Most advanced for complex tasks |
gemini-1.5-flash |
Older but reliable |
Description
The
main.pyusesgemini-2.0-flashas the cloud model, but this model has been deprecated by Google and is no longer available to new users.Error
Location
main.pyline 75:Suggested Fix
Update to
gemini-2.5-flashwhich is the current stable model:Available Alternatives
gemini-2.5-flashgemini-2.5-flash-litegemini-2.5-progemini-1.5-flash