Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set-up vertex? #993

Closed
adriangalilea opened this issue Aug 2, 2024 · 9 comments
Closed

How to set-up vertex? #993

adriangalilea opened this issue Aug 2, 2024 · 9 comments

Comments

@adriangalilea
Copy link

Issue

I had installed all it asked me to, and set the variables it requested, still complains about needing to install:

BadRequestError: litellm.BadRequestError: VertexAIException BadRequestError - vertexai import failed 
please run pip install -U google-cloud-aiplatform "anthropic[vertex]"

Version and model info

No response

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

Did you do the pip install that the error specified?

@paul-gauthier paul-gauthier added the question Further information is requested label Aug 2, 2024
@adriangalilea
Copy link
Author

Thanks for trying aider and filing this issue.

Did you do the pip install that the error specified?

Yup, and installed the google cloud cli in order to authenticate and so on, and nothing, no idea.

@paul-gauthier
Copy link
Collaborator

Did you install aider with pip or pipx? You'd need to install the google packages differently if you installed aider with pipx.

@adriangalilea
Copy link
Author

Did you install aider with pip or pipx? You'd need to install the google packages differently if you installed aider with pipx.

I did install with pipx how shall I do it?

@sholub89
Copy link

sholub89 commented Aug 5, 2024

@adriangalilea , I am using vertex AI and this is all I have to do

pip install google-cloud-aiplatform "anthropic[vertex]"

but additionally - you have to make sure you are logged in with gcloud auth login and is connected to the right project which has Vertex AI by checking gcloud config get-value project and if you need to change it gcloud config set project your-project-name

@sholub89
Copy link

sholub89 commented Aug 5, 2024

@adriangalilea , also after doing the above it is sometimes required to close the current terminal window and open a new one so the changes will apply. Try that and I hope this will work for you

@adriangalilea
Copy link
Author

@adriangalilea , also after doing the above it is sometimes required to close the current terminal window and open a new one so the changes will apply. Try that and I hope this will work for you

Will test out in a couple weeks, thanks.

@adriangalilea adriangalilea closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2024
@blainehansen
Copy link

For posterity, if your aider install is installed with uv (you can check with cat $(which aider)) you need to use uv's additional tool dependency system using --with:

uv tool install --force --python python3.12 --with google-cloud-aiplatform --with "anthropic[vertex]" aider-chat@latest

@paul-gauthier paul-gauthier added priority and removed question Further information is requested labels Feb 10, 2025
@paul-gauthier paul-gauthier reopened this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@blainehansen @sholub89 @paul-gauthier @adriangalilea and others