Skip to content

fix: use gemini-2.0-flash (GA) - #71

Merged
MatMatt merged 1 commit into
eea:mainfrom
MatMatt:fix/gemini-model-v3
Jul 28, 2026
Merged

fix: use gemini-2.0-flash (GA)#71
MatMatt merged 1 commit into
eea:mainfrom
MatMatt:fix/gemini-model-v3

Conversation

@MatMatt

@MatMatt MatMatt commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Why not 2.5 Flash

Google has restricted gemini-2.5-flash to existing users only. The CI's API key is too new to access it. The -001 suffix is a Vertex AI naming convention, not valid in the GenAI v1beta API.

gemini-2.0-flash is GA (General Availability) and open to all API keys — this is the correct fix.

@MatMatt
MatMatt requested a review from mckeea as a code owner July 28, 2026 05:10
@MatMatt
MatMatt merged commit 4e0e24c into eea:main Jul 28, 2026
0 of 2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 46ac075769

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# Model & rate-limit constants (Gemini 2.0 Flash – tier 1)
# ---------------------------------------------------------------------------
MODEL_NAME = "gemini-2.5-flash-latest"
MODEL_NAME = "gemini-2.0-flash"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use a model available after the 2.0 shutdown

As of this commit's 2026-07-28 date, gemini-2.0-flash had already reached its Gemini API shutdown date on 2026-06-01. Every production generation and cache request passes this constant (for example, generate_content at lines 314/339 and caches.create at line 407), so the deploy-docs.yml update and image-description jobs will receive a model-not-found error rather than fixing access for the new API key. Select a currently served model instead.

Useful? React with 👍 / 👎.

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.

1 participant