René's URL Explorer Experiment


Title: `ng update` rewrites Vertex AI calls to a deprecated backend class, in a location where current models are not served · Issue #3758 · angular/angularfire · GitHub

Open Graph Title: `ng update` rewrites Vertex AI calls to a deprecated backend class, in a location where current models are not served · Issue #3758 · angular/angularfire

X Title: `ng update` rewrites Vertex AI calls to a deprecated backend class, in a location where current models are not served · Issue #3758 · angular/angularfire

Description: Summary The v21 migration rewrites an AngularFire 20 app's getVertexAI(...) calls to getAI(app, { backend: new VertexAIBackend() }). Two things are wrong with the class it picks. VertexAIBackend is marked @deprecated - Use AgentPlatformB...

Open Graph Description: Summary The v21 migration rewrites an AngularFire 20 app's getVertexAI(...) calls to getAI(app, { backend: new VertexAIBackend() }). Two things are wrong with the class it picks. VertexAIBackend is...

X Description: Summary The v21 migration rewrites an AngularFire 20 app's getVertexAI(...) calls to getAI(app, { backend: new VertexAIBackend() }). Two things are wrong with the class it picks. VertexAIBacken...

Opengraph URL: https://github.com/angular/angularfire/issues/3758

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ng update` rewrites Vertex AI calls to a deprecated backend class, in a location where current models are not served","articleBody":"### Summary\n\nThe v21 migration rewrites an AngularFire 20 app's `getVertexAI(...)` calls to\n`getAI(app, { backend: new VertexAIBackend() })`. Two things are wrong with the class it picks.\n\n`VertexAIBackend` is marked `@deprecated - Use AgentPlatformBackend instead` in the Firebase SDK.\n`AgentPlatformBackend` does not appear anywhere in `src/` or `docs/`, so the deprecation is unaddressed\nacross the whole package, not only in the migration.\n\nThe larger problem is where that class sends requests. `new VertexAIBackend()` with no argument resolves\nto `us-central1`, and `new AgentPlatformBackend()` resolves to `global`, which is the location Firebase\nsuggests when a model supports it and the only location that serves the Gemini 3.x models.\n\n### What a developer sees\n\nAn AngularFire 20 app calling `getVertexAI(app)` runs `ng update`, changes nothing else, and lands on a\ndeprecated class in a location where a current model returns a bare 404 with no explanation.\n\nMeasured against one live project, two calls a few minutes apart differing only in the backend class:\n\n| Backend | Location | Result for `gemini-3.7-flash` |\n|---|---|---|\n| `new VertexAIBackend()` | `us-central1` | `404`, `Publisher model ... was not found` |\n| `new AgentPlatformBackend()` | `global` | `200`, model responded |\n\n### The fix\n\nEmit `AgentPlatformBackend`. A call that passed a `location` option would keep it, so only calls that\npassed none, or a falsy one, would change location. That is a behavior change an automated rewrite\nshould not make quietly, so the migration should warn once for each file whose location moved, and\nseparately where a `location` is an expression that only runtime can resolve.\n\nOne case would need its own warning. Firebase does not serve the Live API models from `global`, so an\napp calling `getLiveGenerativeModel` or `startAudioConversation` should not be left there. The\nmigration could look for either of those across the workspace and say so in the warning.\n\n### Dependency\n\n`AgentPlatformBackend` first appears in `@firebase/ai` 2.14.0, which firebase 12.17.0 is the first\nrelease to bundle. The package declares `firebase ^12.4.0`, so the emitted class does not exist at the\nbottom of its own supported range. This cannot ship until that minimum rises, which is #3756.\n\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-09-01T04:11:58Z","url":"https://github.com/angular/angularfire/issues/3758"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:864e3e21-88a8-6c9b-6bd5-060008a5875d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD7A:30BA3B:9C4C66:C7705B:6B036639
html-safe-nonce31370b5ff2020ba21bd21545f24a31d85fcb7747d2dd3267a6d619860c65098a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDdBOjMwQkEzQjo5QzRDNjY6Qzc3MDVCOjZCMDM2NjM5IiwidmlzaXRvcl9pZCI6IjQ3ODY1MzQ3MDE0ODM2NDg1NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace300f1d455851838b8d14ef789e0c73bde72fd196a0feefc600f36c96387a9d3
hovercard-subject-tagissue:5307714666
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3758/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dd7ef88872109f61d45fe2a7942d55a981bf38b3ddc7e1927eeaef693c3977ec/angular/angularfire/issues/3758
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dd7ef88872109f61d45fe2a7942d55a981bf38b3ddc7e1927eeaef693c3977ec/angular/angularfire/issues/3758
og:image:altSummary The v21 migration rewrites an AngularFire 20 app's getVertexAI(...) calls to getAI(app, { backend: new VertexAIBackend() }). Two things are wrong with the class it picks. VertexAIBackend is...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamearmando-navarro
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angularfire/issues/3758#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3758
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3758
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/issues/3758
Reloadhttps://github.com/angular/angularfire/issues/3758
Reloadhttps://github.com/angular/angularfire/issues/3758
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
https://github.com/angular/angularfire
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3758
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3758
#3762https://github.com/angular/angularfire/pull/3762
ng update rewrites Vertex AI calls to a deprecated backend class, in a location where current models are not servedhttps://github.com/angular/angularfire/issues/3758#top
#3762https://github.com/angular/angularfire/pull/3762
https://github.com/armando-navarro
comp: aiFirebase AI Logic / Vertex AI (src/ai).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20ai%22
comp: schematicsng add / deploy schematics (src/schematics).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20schematics%22
priority: P2 (medium)Moderate impact; a workaround exists.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22priority%3A%20P2%20(medium)%22
type: bugDefect: expected behavior doesn't happen.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
21.0.0-rc.1https://github.com/angular/angularfire/milestone/29
https://github.com/armando-navarro
armando-navarrohttps://github.com/armando-navarro
on Sep 1, 2026https://github.com/angular/angularfire/issues/3758#issue-5307714666
#3756https://github.com/angular/angularfire/issues/3756
armando-navarrohttps://github.com/armando-navarro
on Sep 1, 2026https://github.com/angular/angularfire/issues/3758#event-30321401900
armando-navarrohttps://github.com/armando-navarro
comp: aiFirebase AI Logic / Vertex AI (src/ai).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20ai%22
comp: schematicsng add / deploy schematics (src/schematics).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20schematics%22
type: bugDefect: expected behavior doesn't happen.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
priority: P2 (medium)Moderate impact; a workaround exists.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22priority%3A%20P2%20(medium)%22
on Sep 1, 2026https://github.com/angular/angularfire/issues/3758#event-30321406022
armando-navarrohttps://github.com/armando-navarro
completedhttps://github.com/angular/angularfire/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3762https://github.com/angular/angularfire/pull/3762
on Sep 2, 2026https://github.com/angular/angularfire/issues/3758#event-30402468795
armando-navarrohttps://github.com/armando-navarro
on Sep 2, 2026https://github.com/angular/angularfire/issues/3758#event-30402468798
fix(schematics): emit AgentPlatformBackend from the v21 AI migrationhttps://github.com/angular/angularfire/commit/36bab40ab3c891158d6d95f7d9611bb31990e20f
https://docs.github.com/articles/closing-issues-via-commit-messages
36bab40https://github.com/angular/angularfire/commit/36bab40ab3c891158d6d95f7d9611bb31990e20f
armando-navarrohttps://github.com/armando-navarro
21.0.0-rc.1https://github.com/angular/angularfire/milestone/29
on Oct 1, 2026https://github.com/angular/angularfire/issues/3758#event-32219562935
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angularfire/issues/3758
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3758
armando-navarrohttps://github.com/armando-navarro
comp: aiFirebase AI Logic / Vertex AI (src/ai).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20ai%22
comp: schematicsng add / deploy schematics (src/schematics).https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22comp%3A%20schematics%22
priority: P2 (medium)Moderate impact; a workaround exists.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22priority%3A%20P2%20(medium)%22
type: bugDefect: expected behavior doesn't happen.https://github.com/angular/angularfire/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
21.0.0-rc.1https://github.com/angular/angularfire/milestone/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.