From 6352c8869cbb2522aff0df5f5177a72070c0c5e5 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 27 Feb 2024 18:34:07 -0800 Subject: [PATCH] refactor(vertex_ai.py): add more logging to show the vertex ai client init params --- litellm/llms/vertex_ai.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litellm/llms/vertex_ai.py b/litellm/llms/vertex_ai.py index f4447a9e91d..18c06d4d677 100644 --- a/litellm/llms/vertex_ai.py +++ b/litellm/llms/vertex_ai.py @@ -278,7 +278,11 @@ def completion( import google.auth ## Load credentials with the correct quota project ref: https://github.com/googleapis/python-aiplatform/issues/2557#issuecomment-1709284744 + print_verbose( + f"VERTEX AI: vertex_project={vertex_project}; vertex_location={vertex_location}" + ) creds, _ = google.auth.default(quota_project_id=vertex_project) + print_verbose(f"VERTEX AI: creds={creds}") vertexai.init( project=vertex_project, location=vertex_location, credentials=creds )