The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(main.py): fix vertex meta llama api call
Krrish Dholakia70a66fafef1b
diff --git a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models/main.py b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models/main.pyindex 01e76ffd7d0..5b2ba511a9a 100644--- a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models/main.py+++ b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_ai_partner_models/main.py@@ -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"