8000 Copybara import of the project: · codefromthecrypt/adk-python@847c8fd · GitHub
[go: up one dir, main page]

Skip to content

Commit 847c8fd

Browse files
BloodBoy21copybara-github
authored andcommitted
Copybara import of the project:
-- d481e06 by Alan B <alan@nerds.ai>: feat: 🚧 catch user transcription -- bba436b by Alan B <alan@nerds.ai>: feat: ✨ send user transcription event as llm_response -- ad2abf5 by Alan B <death1027@outlook.com>: style: 💄 update lint problems -- 744703c by Hangfei Lin <hangfeilin@gmail.com>: fix: set right order for input transcription -- 31a5d42 by Hangfei Lin <hangfeilin@gmail.com>: remove print -- 59e5d9c by Hangfei Lin <hangfeilin@gmail.com>: remove api version COPYBARA_INTEGRATE_REVIEW=google#590 from BloodBoy21:feat/api-version-vertex 1ed8552 PiperOrigin-RevId: 757840099
1 parent f15f64a commit 847c8fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/google/adk/models/google_llm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,11 @@ def _tracking_headers(self) -> dict[str, str]:
174174
@cached_property
175175
def _live_api_client(self) -> Client:
176176
if self._api_backend == 'vertex':
177+
#use beta version for vertex api
178+
api_version = 'v1beta1'
177179
# use default api version for vertex
178180
return Client(
179-
http_options=types.HttpOptions(headers=self._tracking_headers)
181+
http_options=types.HttpOptions(headers=self._tracking_headers,api_version=api_version)
180182
)
181183
else:
182184
# use v1alpha for ml_dev

0 commit comments

Comments
 (0)
0