Skip to content

FIX: update the Gemini model in .env_example to a current one - #3694

Merged
Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
pcbeingused333:fix/env-example-gemini-model
Nov 1, 2026
Merged

Roman Lutz (romanlutz) merged 2 commits into
microsoft:mainfrom
pcbeingused333:fix/env-example-gemini-model

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

.env_example is the file users copy to configure PyRIT, and it sets GOOGLE_GEMINI_MODEL="gemini-2.0-flash". Google shut that model down on the Gemini API on 2026-06-01 (see the Gemini API deprecations page), so a user who fills in only the API key from the template gets an error from the endpoint on the first Gemini request.

This changes the template value to gemini-3.8-flash. It is a one-line change to the example file only; no code paths read the default from anywhere else (GOOGLE_GEMINI_MODEL is only consumed from the environment in pyrit/setup/initializers/targets.py), so there is no test to add.

This change was prepared with the assistance of an AI tool (Claude) and submitted by the account owner.

@romanlutz Roman Lutz (romanlutz) self-assigned this Nov 1, 2026
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Nov 1, 2026
Merged via the queue into microsoft:main with commit b202d4d Nov 1, 2026
60 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants