mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix(main.py): fix vertex meta llama api call
This commit is contained in:
parent
aaa8c7caf0
commit
70a66fafef
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def create_vertex_url(
|
|||
) -> str:
|
||||
"""Return the base url for the vertex partner models"""
|
||||
if partner == VertexPartnerProvider.llama:
|
||||
return f"https://{vertex_location}-aiplatform.googleapis.com/v1beta1/projects/{vertex_project}/locations/{vertex_location}/endpoints/openapi"
|
||||
return f"https://{vertex_location}-aiplatform.googleapis.com/v1beta1/projects/{vertex_project}/locations/{vertex_location}/endpoints/openapi/chat/completions"
|
||||
elif partner == VertexPartnerProvider.mistralai:
|
||||
if stream:
|
||||
return f"https://{vertex_location}-aiplatform.googleapis.com/v1/projects/{vertex_project}/locations/{vertex_location}/publishers/mistralai/models/{model}:streamRawPredict"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue