Copybara import of the project:

--
d481e0604a79470e2c1308827b3ecb78bfb5327e by Alan B <alan@nerds.ai>:

feat: 🚧 catch user transcription

--
bba436bb76d1d2f9d5ba969fce38ff8b8a443254 by Alan B <alan@nerds.ai>:

feat:  send user transcription event as llm_response

--
ad2abf540c60895b79c50f9051a6289ce394b98d by Alan B <death1027@outlook.com>:

style: 💄 update lint problems

--
744703c06716300c0f9f41633d3bafdf4cb180a1 by Hangfei Lin <hangfeilin@gmail.com>:

fix: set right order for input transcription

--
31a5d42d6155b0e5caad0c73c8df43255322016f by Hangfei Lin <hangfeilin@gmail.com>:

remove print

--
59e5d9c72060f97d124883150989315401a4c1b5 by Hangfei Lin <hangfeilin@gmail.com>:

remove api version

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/590 from BloodBoy21:feat/api-version-vertex 1ed855249cae398b40691b91c6e468bccec07a3a
PiperOrigin-RevId: 757840099
This commit is contained in:
Alan 2025-05-12 11:17:23 -07:00 committed by Copybara-Service
parent f15f64af0f
commit 847c8fd11a

View File

@ -174,9 +174,11 @@ class Gemini(BaseLlm):
@cached_property @cached_property
def _live_api_client(self) -> Client: def _live_api_client(self) -> Client:
if self._api_backend == 'vertex': if self._api_backend == 'vertex':
#use beta version for vertex api
api_version = 'v1beta1'
# use default api version for vertex # use default api version for vertex
return Client( return Client(
http_options=types.HttpOptions(headers=self._tracking_headers) http_options=types.HttpOptions(headers=self._tracking_headers,api_version=api_version)
) )
else: else:
# use v1alpha for ml_dev # use v1alpha for ml_dev