fix(vertex): discover and route partner models correctly - #12471
Open
JxnLexn wants to merge 14 commits into
Open
fix(vertex): discover and route partner models correctly#12471JxnLexn wants to merge 14 commits into
JxnLexn wants to merge 14 commits into
Conversation
Keep the PR's Model Garden MaaS ids and xAI catalog spread, and keep the release tip's new Gemma 4 / DeepSeek V4 / Qwen 3.6 / GLM-5.1 / Claude Fable 5.1 entries. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
en.json and de.json already had the keys; the i18n parity test failed on pt-BR (and the other 39 locales). Copy the English fallback next to vertexServiceAccountPlaceholder so every locale has both keys. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Move Vertex model-listing out of the frozen models route and credential copy out of EditConnectionModal so both stay under their file-size caps. Split publisher parsing and URL building into helpers to keep the complexity ratchet at the merge-base. Drop the bare Gemma / DeepSeek-V4 / Qwen3.6 / GLM-5.1 ids the merge reintroduced; they are unroutable without a publisher namespace and this PR already replaced them with MaaS ids. Sync the free-tier catalog counts (437 → 443). Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Keep the PR's Model Garden MaaS ids and xAI catalog spread, and keep the release tip. Drop the bare Gemma / DeepSeek-V4 / Qwen 3.6 / GLM-5.1 ids the tip reintroduced; they are unroutable without a publisher namespace. Sync free-tier catalog counts (444 → 450). Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Regenerate the budget card and FREE-TIERS-GUIDE to 450 entries so they match the merged namespaced Vertex catalog. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
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.
Summary
Authentication behavior
A project-bound API key can execute partner models, but Google does not allow it to call Model Garden publishers.models.list. OmniRoute extracts the bound project from structured Google error metadata and uses the curated project-scoped catalog.
A Service Account JSON credential is exchanged for an OAuth access token. That bearer token can list publishers/google/models and the partner publisher catalogs, so successful discovery now returns catalogMode=live_vertex_catalog without supplementing the result with a stale static Gemini baseline.
Google separately rejects Service Accounts on generativelanguage.googleapis.com. That expected rejection no longer marks the entire Vertex discovery as failed.
An OAuth web-client JSON file is only client configuration and is not itself an access credential. It requires a complete authorization-code and refresh-token flow and is now rejected with a clear message.
Reproduction covered
The live Publisher Model list request used pageSize=1000 although Google enforces a maximum of 300. Every publisher returned HTTP 400, leaving an empty discovery result and causing Sync Models to report:
Vertex model catalogs unavailable — using local catalog
The corrected request returns the live Google and partner catalogs. Gemini chat filtering is capability-oriented: current Flash/Flash Lite/Pro variants from Gemini 2.5 onward are imported, while non-chat and retired entries are excluded.
Verification