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(vertex_ai_partner.py): default vertex ai llama3.1 api to use all openai params
Krrish Dholakia2f402b1cdd67
diff --git a/litellm/llms/vertex_ai_partner.py b/litellm/llms/vertex_ai_partner.pyindex 08780be7651..378ee7290dd 100644--- a/litellm/llms/vertex_ai_partner.py+++ b/litellm/llms/vertex_ai_partner.py@@ -94,18 +94,14 @@ class VertexAILlama3Config:}def get_supported_openai_params(self):- return [- "max_tokens",- "stream",- ]+ return litellm.OpenAIConfig().get_supported_openai_params(model="gpt-3.5-turbo")def map_openai_params(self, non_default_params: dict, optional_params: dict):- for param, value in non_default_params.items():- if param == "max_tokens":- optional_params["max_tokens"] = value- if param == "stream":- optional_params["stream"] = value- return optional_params+ return litellm.OpenAIConfig().map_openai_params(+ non_default_params=non_default_params,+ optional_params=optional_params,+ model="gpt-3.5-turbo",+ )class VertexAIPartnerModels(BaseLLM):