forked from phoenix/litellm-mirror
refactor(vertex_ai.py): add more logging for the vertex_ai file
This commit is contained in:
parent
749bf46d05
commit
2fac06de08
1 changed files with 3 additions and 1 deletions
|
@ -300,7 +300,9 @@ def completion(
|
||||||
f"VERTEX AI: vertex_project={vertex_project}; vertex_location={vertex_location}"
|
f"VERTEX AI: vertex_project={vertex_project}; vertex_location={vertex_location}"
|
||||||
)
|
)
|
||||||
creds, _ = google.auth.default(quota_project_id=vertex_project)
|
creds, _ = google.auth.default(quota_project_id=vertex_project)
|
||||||
print_verbose(f"VERTEX AI: creds={creds}")
|
print_verbose(
|
||||||
|
f"VERTEX AI: creds={creds}; google application credentials: {os.getenv('GOOGLE_APPLICATION_CREDENTIALS')}"
|
||||||
|
)
|
||||||
vertexai.init(
|
vertexai.init(
|
||||||
project=vertex_project, location=vertex_location, credentials=creds
|
project=vertex_project, location=vertex_location, credentials=creds
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue