mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-12 08:23:23 +00:00
Merge pull request #3324 from suptejas/patch-1
fix: incorrect analysis for vertex ai env vars causing confusion
This commit is contained in:
+1
-1
@@ -6563,7 +6563,7 @@ def validate_environment(model: Optional[str] = None) -> dict:
|
||||
if "VERTEXAI_PROJECT" in os.environ and "VERTEXAI_LOCATION" in os.environ:
|
||||
keys_in_environment = True
|
||||
else:
|
||||
missing_keys.extend(["VERTEXAI_PROJECT", "VERTEXAI_PROJECT"])
|
||||
missing_keys.extend(["VERTEXAI_PROJECT", "VERTEXAI_LOCATION"])
|
||||
elif custom_llm_provider == "huggingface":
|
||||
if "HUGGINGFACE_API_KEY" in os.environ:
|
||||
keys_in_environment = True
|
||||
|
||||
Reference in New Issue
Block a user