Skip to content

Conversation

@SivamuruganP
Copy link

Fixes #11845

This PR fixes a bug where setting the location to "global" resulted in the generation of an incorrect API endpoint (global-aiplatform.googleapis.com).

The "global" location is a special case in Vertex AI and should map to the regional-agnostic endpoint aiplatform.googleapis.com, rather than following the standard {location}-aiplatform.googleapis.com pattern.

  • Modified VertexAI.java to explicitly handle the "global" location string during endpoint construction.
  • Added new unit test: testInstantiateVertexAI_builderLocationFromGLOBAL_REGION_shouldContainRightFields

Currently, setting location to 'global' generates an incorrect endpoint
'global-aiplatform.googleapis.com'. This change ensures it correctly
resolves to 'aiplatform.googleapis.com'.

Fixes googleapis#11845
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.

[VertexAI] Incorrect API endpoint generated when location is "global"

1 participant