Repository navigation
Replace retired gemini-2.0-flash example model in common.ai docs - #73516
Merged
Merged
Conversation
Google shut this model down on both Vertex AI and the Generative Language API, so the connection form's placeholder and every doc page that copied it sent a first-time user straight into a 404. The existing tests only checked that the google-cloud prefix was a provider pydantic-ai recognizes, never that the specific model after the colon was actually servable, which is how a retired name went unnoticed.
pankajastro
requested review from
Lee-W,
ashb,
gopidesupavan and
kaxil
as code owners
September 22, 2026 04:54
Lee-W
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Google shut down
gemini-2.0-flashon both Vertex AI and the GenerativeLanguage API, so the connection form's example and every doc page that
copied it sent new users into a 404 on their first run.
Replaces it with
gemini-2.5-flash(confirmed current) everywhere itappeared, and adds a test that checks the documented model name against
a maintained allowlist -- the existing tests only checked the
google-cloudprefix, never the model name itself.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Sonnet 5) following the guidelines