Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit c4361f0

Browse files
ISSUE_759_RESOLUTION
1 parent a9af2cf commit c4361f0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ISSUE_759_RESOLUTION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Users attempting to use "Gemini-3-Pro-Preview" with the Roocode VSCode extension
1010
The model name **"Gemini-3-Pro-Preview"** does not exist. This is causing the API requests to fail.
1111

1212
**Valid model names include:**
13-
- `gemini-1.5-flash` (recommended for most use cases)
13+
- `gemini-2.0-flash` (recommended for most use cases - newest model)
14+
- `gemini-1.5-flash`
1415
- `gemini-1.5-flash-latest`
1516
- `gemini-1.5-pro`
1617
- `gemini-1.5-pro-latest`
17-
- `gemini-2.0-flash` (newest model)
1818
- `gemini-2.0-flash-001`
1919

2020
### 2. Deprecated SDK
@@ -60,7 +60,7 @@ All users should migrate to the **new [Google Generative AI SDK](https://github.
6060
import google.generativeai as genai
6161

6262
genai.configure(api_key="YOUR_API_KEY")
63-
model = genai.GenerativeModel("gemini-1.5-flash")
63+
model = genai.GenerativeModel("gemini-2.0-flash")
6464
response = model.generate_content("Hello")
6565
```
6666

@@ -70,7 +70,7 @@ All users should migrate to the **new [Google Generative AI SDK](https://github.
7070

7171
client = genai.Client(api_key="YOUR_API_KEY")
7272
response = client.models.generate_content(
73-
model="gemini-1.5-flash",
73+
model="gemini-2.0-flash",
7474
contents="Hello"
7575
)
7676
```

ISSUE_759_SUMMARY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ For Roocode users:
8989
import google.generativeai as genai
9090

9191
genai.configure(api_key="YOUR_API_KEY")
92-
model = genai.GenerativeModel("gemini-1.5-flash")
92+
model = genai.GenerativeModel("gemini-2.0-flash")
9393
response = model.generate_content("Hello")
9494
print(response.text)
9595
```
@@ -100,7 +100,7 @@ from google import genai
100100

101101
client = genai.Client(api_key="YOUR_API_KEY")
102102
response = client.models.generate_content(
103-
model="gemini-1.5-flash",
103+
model="gemini-2.0-flash",
104104
contents="Hello"
105105
)
106106
print(response.text)

verify_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def main():
3838
api_key = os.environ.get("GEMINI_API_KEY")
3939

4040
if not api_key:
41-
print("API key not found in environment variable GEMINI_API_KEY")
41+
print("API key not found in environment variable GEMINI_API_KEY", file=sys.stderr)
4242
api_key = input("Please enter your API key: ").strip()
4343

4444
if not api_key:
@@ -71,7 +71,7 @@ def main():
7171
print(f" Output Token Limit: {model.output_token_limit:,}")
7272

7373
if not models_found:
74-
print("No models found with generateContent capability.")
74+
print("No models found with generateContent capability.", file=sys.stderr)
7575

7676
except Exception as e:
7777
print(f"\nERROR: Failed to list models: {e}", file=sys.stderr)

0 commit comments

Comments
 (0)