Skip to content

fix: update Gemini availability check to use gemini-2.5-flash#13

Open
hiroalchem wants to merge 1 commit intoroyerlab:mainfrom
hiroalchem:fix/gemini-availability-check-model
Open

fix: update Gemini availability check to use gemini-2.5-flash#13
hiroalchem wants to merge 1 commit intoroyerlab:mainfrom
hiroalchem:fix/gemini-availability-check-model

Conversation

@hiroalchem
Copy link

Summary

  • Update the model used in check_gemini_api_availability() from gemini-2.0-flash to gemini-2.5-flash
  • Google has removed the free tier quota for gemini-2.0-flash (RPM/TPM/RPD all 0), while gemini-2.5-flash still has an active free tier (RPM 5, TPM 250K, RPD 20)
  • This was causing a 429 RESOURCE_EXHAUSTED error during the availability check, incorrectly marking Gemini as unavailable

Fixes #12

Test plan

  • Verify napari-chatgpt startup no longer shows 429 error for Gemini
  • Verify Gemini API is correctly detected as available with a valid free-tier API key

Google has removed the free tier quota for gemini-2.0-flash (RPM, TPM,
RPD are all 0), causing the availability check to fail with 429
RESOURCE_EXHAUSTED even for users with valid API keys. Update to
gemini-2.5-flash which still has an active free tier.

Fixes royerlab#12
@hiroalchem hiroalchem force-pushed the fix/gemini-availability-check-model branch from 6cff752 to 410d9c1 Compare March 6, 2026 07:21
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.

Update Gemini availability check to use gemini-2.5-flash

1 participant