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
rename _is_model_gemini_spec_model
Ishaan Jaff793a920caa8b
diff --git a/litellm/llms/vertex_ai/common_utils.py b/litellm/llms/vertex_ai/common_utils.pyindex fb9f595fa87..bbaab31401d 100644--- a/litellm/llms/vertex_ai/common_utils.py+++ b/litellm/llms/vertex_ai/common_utils.py@@ -31,7 +31,7 @@ def get_supports_system_message()# Vertex Models called in the `/gemini` request/response format also support system messages- if litellm.VertexGeminiConfig._is_model_gemini_gemini_spec_model(model):+ if litellm.VertexGeminiConfig._is_model_gemini_spec_model(model):supports_system_message = Trueexcept Exception as e:verbose_logger.warning(diff --git a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.pyindex cbbbae5b34d..fdb8c0e5580 100644--- a/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py+++ b/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py@@ -420,7 +420,7 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):]@staticmethod- def _is_model_gemini_gemini_spec_model(model: Optional[str]) -> bool:+ def _is_model_gemini_spec_model(model: Optional[str]) -> bool:"""Returns true if user is trying to call custom model in `/gemini` request/response format"""