-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Description
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:
model="gemini-2.5-flash"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 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels