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
make model param optional
Sameerlite5b896d2757b9
diff --git a/litellm/llms/vertex_ai/vertex_llm_base.py b/litellm/llms/vertex_ai/vertex_llm_base.pyindex 139cea08c51..0f0bc776cc9 100644--- a/litellm/llms/vertex_ai/vertex_llm_base.py+++ b/litellm/llms/vertex_ai/vertex_llm_base.py@@ -293,7 +293,7 @@ class VertexBase:stream: Optional[bool],auth_header: Optional[str],url: str,- model: str,+ model: Optional[str] = None,) -> Tuple[Optional[str], str]:"""for cloudflare ai gateway - https://github.com/BerriAI/litellm/issues/4317@@ -304,6 +304,10 @@ class VertexBase:if api_base:if custom_llm_provider == "gemini":# For Gemini (Google AI Studio), construct the full path like other providers+ if model is None:+ raise ValueError(+ "Model parameter is required for Gemini custom API base URLs"+ )url = "{}/models/{}:{}".format(api_base, model, endpoint)if gemini_api_key is None:raise ValueError(