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:
An API client for the given project and location.
"""
client = vertexai.Client(project=self._project, location=self._location)
if self._api_client_http_options_override():
client.http_options = self._api_client_http_options_override()
return client
return vertexai.Client(
project=self._project,
location=self._location,
http_options=self._api_client_http_options_override(),
)
def _is_vertex_express_mode(