Skip to content

Commit

Permalink
fix raise better error message on reaching failed vertex import
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Jun 27, 2024
1 parent 9d50fc1 commit 80d8bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litellm/llms/vertex_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def completion(
except:
raise VertexAIError(
status_code=400,
message="vertexai import failed please run `pip install google-cloud-aiplatform`",
message="vertexai import failed please run `pip install google-cloud-aiplatform`. This is required for the 'vertex_ai/' route on LiteLLM",
)

if not (
Expand Down

0 comments on commit 80d8bf5

Please sign in to comment.