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 VertexAIGemmaModels
Ishaan Jaffer87b75afe12d6
diff --git a/litellm/llms/vertex_ai/vertex_gemma_models/main.py b/litellm/llms/vertex_ai/vertex_gemma_models/main.pyindex 8203b285ebd..41bd6b5431e 100644--- a/litellm/llms/vertex_ai/vertex_gemma_models/main.py+++ b/litellm/llms/vertex_ai/vertex_gemma_models/main.py@@ -25,7 +25,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@@ -82,7 +82,8 @@ class VertexAIGemmaModels(VertexBase):message="""Upgrade vertex ai. Run `pip install "google-cloud-aiplatform>=1.38"`""",)try:- model = model.replace("gemma/", "")++ model = get_vertex_base_model_name(model=model)vertex_httpx_logic = VertexLLM()access_token, project_id = vertex_httpx_logic._ensure_access_token(