Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

add better debugging statements for vertex logging

Ishaan Jaff92a34f9dcd14
diff --git a/litellm/llms/vertex_httpx.py b/litellm/llms/vertex_httpx.py
index aec92579bdd..9995373f32e 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: