From 4e9f66bc7ea76db3570340f49ccc39afe91a1ea0 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 26 Aug 2024 09:14:04 -0700 Subject: [PATCH] fix(vertex_httpx.py): return project id, if given --- litellm/llms/vertex_httpx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/vertex_httpx.py b/litellm/llms/vertex_httpx.py index 29d5854b40..faecdd7902 100644 --- a/litellm/llms/vertex_httpx.py +++ b/litellm/llms/vertex_httpx.py @@ -1095,7 +1095,7 @@ class VertexLLM(BaseLLM): if not self._credentials or not self._credentials.token: raise RuntimeError("Could not resolve API token from the environment") - return self._credentials.token, self.project_id + return self._credentials.token, project_id or self.project_id def is_using_v1beta1_features(self, optional_params: dict) -> bool: """