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

Can´t Use it with VERTEX AI #209

Open
everaldo opened this issue Oct 7, 2024 · 0 comments
Open

Can´t Use it with VERTEX AI #209

everaldo opened this issue Oct 7, 2024 · 0 comments

Comments

@everaldo
Copy link

everaldo commented Oct 7, 2024

Got this error:

Image

Error! 400 Error code: 400 - {'error': {'message': 'litellm.BadRequestError: VertexAIException BadRequestError - vertexai import failed please run pip install -U google-cloud-aiplatform "anthropic[vertex]"\nReceived Model Group=claude-3-5-sonnet\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '400'}}

My litellm-config.yaml

model_list:
  - model_name: claude-3-5-sonnet
    litellm_params:
      model: vertex_ai/claude-3-5-sonnet@20240620
      vertex_ai_project: os.environ/VERTEXAI_PROJECT
      vertex_ai_location: os.environ/VERTEXAI_LOCATION

I´ve also tried this:

 docker run --name openui-test -p 7878:7878   -e VERTEXAI_PROJECT   -e VERTEXAI_LOCATION   -e GOOGLE_APPLICATION_CREDENTIALS   -v $(pwd)/openui_data/litellm-config.yaml:/app/litellm-config.yaml -v $(pwd)/openui_data/application_default_credentials.json:/app/application_default_credentials.json   --entrypoint /bin/bash   ghcr.io/wandb/openui -c "pip install -U google-cloud-aiplatform 'anthropic[vertex]' && python -m openui --litellm"

But it fails.

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

1 participant