[Platform] Derive VertexAI API host from location for regional and data-residency endpoints#2284
Open
rserry wants to merge 1 commit into
Open
[Platform] Derive VertexAI API host from location for regional and data-residency endpoints#2284rserry wants to merge 1 commit into
rserry wants to merge 1 commit into
Conversation
…ta-residency endpoints
chr-hertel
requested changes
Jul 8, 2026
chr-hertel
left a comment
Member
There was a problem hiding this comment.
Hi @rserry, thanks for raising this issue and jumping on providing a solution - pretty much appreciated!
I made some minor comments - i don't use Vertex myself, but also noted this change now with the examples and I think we should consider this a breaking change => meaning to add a note about it in UPGRADE.md
Comment on lines
+14
to
+29
| Regional and Data-Residency Endpoints | ||
| ------------------------------------- | ||
|
|
||
| The API host is derived from the `location` passed to the factory: | ||
|
|
||
| * `null` or `global` uses the global endpoint `aiplatform.googleapis.com`. | ||
| * A region such as `europe-west1` uses the matching regional endpoint | ||
| `europe-west1-aiplatform.googleapis.com`. | ||
| * The multi-region data-residency (jurisdictional) values `eu` and `us` use | ||
| `aiplatform.eu.rep.googleapis.com` and `aiplatform.us.rep.googleapis.com` | ||
| respectively. | ||
|
|
||
| See [Vertex AI locations](https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations) | ||
| and [data residency](https://cloud.google.com/vertex-ai/generative-ai/docs/data-residency) | ||
| for the list of supported values. | ||
|
|
Member
There was a problem hiding this comment.
Please move this section to docs/components/platform/vertexai.rst instead - we keep the README tidy, but the rst files are deployed to symfony.com docs
| 0.11 | ||
| ---- | ||
|
|
||
| * Derive the API host from the configured `location` so regional (e.g. `europe-west1`) and data-residency (`eu`, `us`) endpoints are used; `null`/`global` keep the existing `aiplatform.googleapis.com` host |
Member
There was a problem hiding this comment.
let's keep it short:
Suggested change
| * Derive the API host from the configured `location` so regional (e.g. `europe-west1`) and data-residency (`eu`, `us`) endpoints are used; `null`/`global` keep the existing `aiplatform.googleapis.com` host | |
| * Derive the API host from the configured `location` to support regional and and data-residency endpoints |
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.
The VertexAI bridge hardcoded
aiplatform.googleapis.comfor every request, soregional and data-residency (jurisdictional) deployments could not be reached —
a blocker for anyone with data-residency requirements (e.g. EU healthcare/GDPR).
This derives the API host from the
locationalready passed to the factory,via a small
RegionAwareTrait::resolveHost()helper shared by the Gemini andEmbeddings model clients:
null/global→aiplatform.googleapis.com(unchanged)eu/us→aiplatform.eu.rep.googleapis.com/aiplatform.us.rep.googleapis.comeurope-west1→europe-west1-aiplatform.googleapis.com