fix: VertexSessionService with adding base_url override to base api override without removing initialized http_options

PiperOrigin-RevId: 816409410
This commit is contained in:
Google Team Member
2025-10-07 15:43:17 -07:00
committed by Copybara-Service
parent b0f0698ec2
commit 8110e41b36
@@ -328,10 +328,11 @@ class VertexAiSessionService(BaseSessionService):
Returns: Returns:
An API client for the given project and location. An API client for the given project and location.
""" """
client = vertexai.Client(project=self._project, location=self._location) return vertexai.Client(
if self._api_client_http_options_override(): project=self._project,
client.http_options = self._api_client_http_options_override() location=self._location,
return client http_options=self._api_client_http_options_override(),
)
def _is_vertex_express_mode( def _is_vertex_express_mode(