Skip to content

fix(transcript): replace retired preview model; fall back on 404 as well#394

Merged
MrOrz merged 2 commits into
masterfrom
fix/transcript-model-fallback
Jul 16, 2026
Merged

fix(transcript): replace retired preview model; fall back on 404 as well#394
MrOrz merged 2 commits into
masterfrom
fix/transcript-model-fallback

Conversation

@MrOrz

@MrOrz MrOrz commented Jul 16, 2026

Copy link
Copy Markdown
Member

Problem

Google retired gemini-3.1-flash-lite-preview on 2026-07-09 (~23:58 UTC). Since then, every video/audio transcript request received a 404 from Gemini:

Publisher model .../models/gemini-3.1-flash-lite-preview was not found or your project does not have access to it

The model fallback loop in createTranscript only continued to the next model on 429 + RESOURCE_EXHAUSTED; any other error was re-thrown. So the second model (gemini-2.5-flash) was never attempted, and the AI response was written as ERROR. ~248 video/audio articles since then have no transcript. Image OCR (Vision API) was unaffected.

Changes

  1. Replace the retired model: gemini-3.1-flash-lite-preview → GA gemini-3.1-flash-lite in TRANSCRIPT_MODELS.
  2. Broaden fallback: also try the next model on 404 / NOT_FOUND (model retired or inaccessible to the project), so a future preview-model retirement degrades gracefully instead of taking out all AV transcripts.
  3. Error message: All models failed due to quota limits. no longer assumes quota; it now includes the last error for easier diagnosis.

🤖 Generated with Claude Code

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the TRANSCRIPT_MODELS configuration and enhances error handling in createTranscript by capturing the last error encountered during model iteration. The reviewer suggested safely converting errors to strings to prevent potential TypeError exceptions and recommended conditionally formatting the final error message to avoid displaying 'undefined' in edge cases where no error is captured.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/graphql/util.js
Comment thread src/graphql/util.js
@coveralls

coveralls commented Jul 16, 2026

Copy link
Copy Markdown

Coverage Status

Coverage is 81.989%fix/transcript-model-fallback into master. No base build found for master.

MrOrz and others added 2 commits July 17, 2026 01:12
Google retired gemini-3.1-flash-lite-preview, causing all video/audio
transcript requests to fail with 404 since 2026-07-09. The fallback
loop only continued on 429/RESOURCE_EXHAUSTED, so the second model
(gemini-2.5-flash) was never tried and the AI response was written
as ERROR.

- Replace the retired preview model with GA gemini-3.1-flash-lite
- Also try the next model on 404/NOT_FOUND (model retired or
  inaccessible), not just quota errors
- Include the last error in the all-models-failed message instead of
  assuming quota limits

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MrOrz
MrOrz force-pushed the fix/transcript-model-fallback branch from e2cdd94 to e3660c9 Compare July 16, 2026 17:12
@MrOrz

MrOrz commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

@claude /code-review

@claude

claude Bot commented Jul 16, 2026

Copy link
Copy Markdown

Claude finished @MrOrz's task in 1m 4s —— View job


Code Review

Reviewing PR changes...

  • Gather diff and context
  • Run finder angles
  • Verify findings
  • Post review

@MrOrz
MrOrz merged commit 436535f into master Jul 16, 2026
4 checks passed
@MrOrz
MrOrz deleted the fix/transcript-model-fallback branch July 16, 2026 17:49
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