Skip to content
This repository was archived by the owner on Jul 24, 2026. It is now read-only.

Commit 33d2ec4

Browse files
committed
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 <adithya.narayanan01@gmail.com>
1 parent b24d697 commit 33d2ec4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def generate_cloud(messages, tools):
7272
start_time = time.time()
7373

7474
gemini_response = client.models.generate_content(
75-
model="gemini-2.0-flash",
75+
model="gemini-2.5-flash",
7676
contents=contents,
7777
config=types.GenerateContentConfig(tools=gemini_tools),
7878
)

0 commit comments

Comments
 (0)