Skip to content

feat: add api version to vertex mode #590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d481e06
feat: :construction: catch user transcription
BloodBoy21 Apr 30, 2025
bba436b
feat: :sparkles: send user transcription event as llm_response
BloodBoy21 Apr 30, 2025
1de70be
Merge branch 'main' into main
BloodBoy21 May 1, 2025
5480f0d
Merge branch 'main' into main
BloodBoy21 May 1, 2025
ad2abf5
style: :lipstick: update lint problems
BloodBoy21 May 2, 2025
98b1829
Merge branch 'main' into main
BloodBoy21 May 3, 2025
5757063
Merge branch 'main' into main
BloodBoy21 May 3, 2025
405187f
Merge branch 'main' into main
BloodBoy21 May 3, 2025
744703c
fix: set right order for input transcription
hangfei May 3, 2025
31a5d42
remove print
hangfei May 3, 2025
913a492
Merge branch 'main' into main
hangfei May 3, 2025
59e5d9c
remove api version
hangfei May 3, 2025
56dbb93
Merge branch 'main' into main
hangfei May 4, 2025
b5f28fc
Merge branch 'main' into main
BloodBoy21 May 4, 2025
4b782f8
feat: :sparkles: set version to gemini using vertex api
BloodBoy21 May 4, 2025
6e74b74
Merge branch 'main' into main
BloodBoy21 May 5, 2025
ea29015
Merge branch 'main' into main
BloodBoy21 May 6, 2025
578eeb0
Merge branch 'main' into main
hangfei May 6, 2025
fb0b464
Merge branch 'feat/api-version-vertex'
BloodBoy21 May 6, 2025
d939503
Merge branch 'google:main' into feat/api-version-vertex
BloodBoy21 May 6, 2025
55894ee
Merge branch 'main' into feat/api-version-vertex
hangfei May 7, 2025
0f3b640
Merge branch 'main' into feat/api-version-vertex
hangfei May 8, 2025
a7f91a0
Merge branch 'main' into feat/api-version-vertex
hangfei May 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/google/adk/models/google_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ def _tracking_headers(self) -> dict[str, str]:
@cached_property
def _live_api_client(self) -> Client:
if self._api_backend == 'vertex':
#use beta version for vertex api
api_version = 'v1beta1'
# use default api version for vertex
return Client(
http_options=types.HttpOptions(headers=self._tracking_headers)
http_options=types.HttpOptions(headers=self._tracking_headers,api_version=api_version)
)
else:
# use v1alpha for ml_dev
Expand Down