Skip to content

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]

fix(gemini/): add gemini/ route optional param mapping support (#9677)

Krish Dholakia453003c3783e
diff --git a/litellm/proxy/_new_secret_config.yaml b/litellm/proxy/_new_secret_config.yaml
index 1f8d442b7df..8e0c45d3890 100644
--- a/litellm/proxy/_new_secret_config.yaml
+++ b/litellm/proxy/_new_secret_config.yaml
@@ -26,7 +26,6 @@ model_list:
api_key: os.environ/OPENROUTER_API_KEY
api_base: http://0.0.0.0:8090
-
litellm_settings:
num_retries: 0
callbacks: ["prometheus"]
diff --git a/litellm/utils.py b/litellm/utils.py
index 6629bd13757..865c104eb71 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -2624,7 +2624,7 @@ def get_optional_params_embeddings( # noqa: PLR0915
non_default_params=non_default_params, optional_params={}, kwargs=kwargs
)
return optional_params
- elif custom_llm_provider == "vertex_ai":
+ elif custom_llm_provider == "vertex_ai" or custom_llm_provider == "gemini":
supported_params = get_supported_openai_params(
model=model,
custom_llm_provider="vertex_ai",