From 073dba4157254b24ffde4b3988731e9811aae49f Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 1 Aug 2024 13:34:59 -0700 Subject: [PATCH] add better debugging statements for vertex logging --- litellm/llms/vertex_httpx.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/litellm/llms/vertex_httpx.py b/litellm/llms/vertex_httpx.py index aec92579bd..9995373f32 100644 --- a/litellm/llms/vertex_httpx.py +++ b/litellm/llms/vertex_httpx.py @@ -790,6 +790,16 @@ class VertexLLM(BaseLLM): if credentials is not None and isinstance(credentials, str): import google.oauth2.service_account + verbose_logger.debug( + "Vertex: Loading vertex credentials from %s", credentials + ) + verbose_logger.debug( + "Vertex: checking if credentials is a valid path, os.path.exists(%s)=%s, current dir %s", + credentials, + os.path.exists(credentials), + os.getcwd(), + ) + if os.path.exists(credentials): json_obj = json.load(open(credentials)) else: