Skip to content

fix: replace retired Gemini model pins with -latest aliases - #402

Open
dakshcodez wants to merge 1 commit into
interviewstreet:mainfrom
dakshcodez:fix/gemini-latest-model-aliases
Open

fix: replace retired Gemini model pins with -latest aliases#402
dakshcodez wants to merge 1 commit into
interviewstreet:mainfrom
dakshcodez:fix/gemini-latest-model-aliases

Conversation

@dakshcodez

Copy link
Copy Markdown

Summary

Fixes #378.

All five Gemini models shipped in providers.json fail on a fresh API key:

model status
gemini-2.0-flash / gemini-2.0-flash-lite 429 quota exhausted
gemini-2.5-flash / gemini-2.5-flash-lite / gemini-2.5-pro 404 — retired for new users

The 404s are unambiguous: these model versions are gone at the model level, independent of quota/billing. .env.example and README.md both point new contributors at gemini-2.5-pro, so this is the first thing a fresh clone hits.

  • Swapped the dated pins for Google's -latest aliases: gemini-flash-latest, gemini-flash-lite-latest, gemini-pro-latest. These resolve to whatever Google currently serves per tier instead of a specific retired snapshot, so this doesn't recur every time a version is deprecated (the same class of break already happened once going from 2.0 to 2.5).
  • Updated .env.example and the two README.md references (env var table + Gemini setup section) to match.

Verification

Confirmed directly against https://generativelanguage.googleapis.com/v1beta/openai/chat/completions with a live key:

  • gemini-2.5-pro, gemini-2.5-flash → 404 "no longer available to new users"
  • gemini-flash-latest, gemini-flash-lite-latest → 200
  • gemini-pro-latest → valid (429 quota on this key at test time, not 404)

Ran the CLI end to end:

python score.py ./resume/sample.pdf --role software_engineering_intern

with DEFAULT_MODEL=gemini-flash-latest — basics-section extraction completed with no 404s or retries (previously failed immediately with the abort seen in #378).

Test plan

  • Probed all three new model names against the live OpenAI-compat endpoint
  • Ran score.py end to end against a real resume with gemini-flash-latest
  • Ollama smoke test (unchanged by this PR — no ollama models touched)

gemini-2.0-flash, gemini-2.0-flash-lite, gemini-2.5-flash,
gemini-2.5-flash-lite, and gemini-2.5-pro all fail on the OpenAI-compat
endpoint for new API keys — the 2.5 models 404 with 'no longer available
to new users', and the 2.0 models are quota-exhausted with nothing to
fall back to.

Switch to gemini-flash-latest, gemini-flash-lite-latest, and
gemini-pro-latest, which resolve to whatever Google currently serves
under each tier instead of a dated snapshot, so this doesn't recur every
time a pinned version is retired. Update .env.example and README
references to match.

Verified against the live API and via score.py end to end: section
extraction completes with no 404s.

Fixes interviewstreet#378

@Migueacalle98 Migueacalle98 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.

LGTM! pulled these changes and ran with a fresh gemini key as a new user.
Project now works, previously broken with 404 errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Bug: no Gemini model in providers.json is usable on a new API key (2.5-flash / 2.5-flash-lite return 404 "no longer available to new users")

2 participants