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

[Feature]: LiteLLM support VertexAI/ Hugging Face Models #3659

Open
ishaan-jaff opened this issue May 15, 2024 · 2 comments
Open

[Feature]: LiteLLM support VertexAI/ Hugging Face Models #3659

ishaan-jaff opened this issue May 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ishaan-jaff
Copy link
Contributor

The Feature

user is trying to use litellm for calling VertexAI / hugging face model

Motivation, pitch

Twitter / LinkedIn details

No response

@ishaan-jaff ishaan-jaff added the enhancement New feature or request label May 15, 2024
@krrishdholakia
Copy link
Contributor

i believe this is already supported via model garden - https://docs.litellm.ai/docs/providers/vertex#model-garden

@nerfZael
Copy link

nerfZael commented May 17, 2024

@krrishdholakia it is not supported, the Vertex API throws an error:

{"error":{"message":"VertexAIException - 400 Failed to deserialize the JSON body into the target type: instances[0]: missing field `inputs` at line 1 column 74 

FYI this is my minimal reproducible setup:

import litellm
litellm.vertex_project = "0000" # project id
litellm.vertex_location = "us-central1"

response = litellm.completion(
  model="vertex_ai/0000", # endpoint id 
  messages=[{"role": "user", "content": "write code for saying hi from LiteLLM"}],
)
print(response)

My guess is it's because it's a hugging face model that's deployed to vertex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants