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:
|
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user