Skip to content

Commit 8110e41

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: VertexSessionService with adding base_url override to base api override without removing initialized http_options
PiperOrigin-RevId: 816409410
1 parent b0f0698 commit 8110e41

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/google/adk/sessions/vertex_ai_session_service.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,11 @@ def _get_api_client(self) -> vertexai.Client:
328328
Returns:
329329
An API client for the given project and location.
330330
"""
331-
client = vertexai.Client(project=self._project, location=self._location)
332-
if self._api_client_http_options_override():
333-
client.http_options = self._api_client_http_options_override()
334-
return client
331+
return vertexai.Client(
332+
project=self._project,
333+
location=self._location,
334+
http_options=self._api_client_http_options_override(),
335+
)
335336

336337

337338
def _is_vertex_express_mode(

0 commit comments

Comments
 (0)