mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: VertexSessionService with adding base_url override to base api override without removing initialized http_options
PiperOrigin-RevId: 816409410
This commit is contained in:
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(
|
||||
|
||||
Reference in New Issue
Block a user