From 33d2ec40d05c2579e7d465101677051774db03dd Mon Sep 17 00:00:00 2001 From: Adithya Narayanan Date: Sat, 21 Feb 2026 01:21:17 +0000 Subject: [PATCH] fix: update deprecated gemini-2.0-flash to gemini-2.5-flash 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 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 4cea3430..376ee1dd 100644 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ def generate_cloud(messages, tools): start_time = time.time() gemini_response = client.models.generate_content( - model="gemini-2.0-flash", + model="gemini-2.5-flash", contents=contents, config=types.GenerateContentConfig(tools=gemini_tools), )