mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix vertex use async func to set auth creds
This commit is contained in:
parent
3ac9711524
commit
7891b3742c
8 changed files with 420 additions and 230 deletions
|
@ -150,8 +150,15 @@ async def vertex_proxy_route(
|
|||
|
||||
base_target_url = f"https://{vertex_location}-aiplatform.googleapis.com/"
|
||||
|
||||
_auth_header, vertex_project = (
|
||||
await vertex_fine_tuning_apis_instance._ensure_access_token_async(
|
||||
credentials=vertex_credentials, project_id=vertex_project
|
||||
)
|
||||
)
|
||||
|
||||
auth_header, _ = vertex_fine_tuning_apis_instance._get_token_and_url(
|
||||
model="",
|
||||
auth_header=_auth_header,
|
||||
gemini_api_key=None,
|
||||
vertex_credentials=vertex_credentials,
|
||||
vertex_project=vertex_project,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue