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 _supports_penalty_parameters
Ishaan Jafferb19d9435cffb
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 67b722e92cd..98eecf6fb8c 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@@ -691,11 +691,9 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):value=value, optional_params=optional_params)elif param == "frequency_penalty":- optional_params["frequency_penalty"] = valueif self._supports_penalty_parameters(model):optional_params["frequency_penalty"] = valueelif param == "presence_penalty":- optional_params["presence_penalty"] = valueif self._supports_penalty_parameters(model):optional_params["presence_penalty"] = valueelif param == "logprobs":