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
from ..common_utils import VertexAIError, get_vertex_base_model_name add
Ishaan Jaffer8a9c9af55f23
diff --git a/litellm/llms/vertex_ai/vertex_model_garden/main.py b/litellm/llms/vertex_ai/vertex_model_garden/main.pyindex 225e75a5add..fe7d0862e02 100644--- a/litellm/llms/vertex_ai/vertex_model_garden/main.py+++ b/litellm/llms/vertex_ai/vertex_model_garden/main.py@@ -22,7 +22,7 @@ import httpx # type: ignorefrom litellm.utils import ModelResponse-from ..common_utils import VertexAIError+from ..common_utils import VertexAIError, get_vertex_base_model_namefrom ..vertex_llm_base import VertexBase@@ -89,7 +89,7 @@ class VertexAIModelGardenModels(VertexBase):message="""Upgrade vertex ai. Run `pip install "google-cloud-aiplatform>=1.38"`""",)try:- model = model.replace("openai/", "")+ model = get_vertex_base_model_name(model=model)vertex_httpx_logic = VertexLLM()access_token, project_id = vertex_httpx_logic._ensure_access_token(