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(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.yamlindex 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_KEYapi_base: http://0.0.0.0:8090-litellm_settings:num_retries: 0callbacks: ["prometheus"]diff --git a/litellm/utils.py b/litellm/utils.pyindex 6629bd13757..865c104eb71 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -2624,7 +2624,7 @@ def get_optional_params_embeddings( # noqa: PLR0915non_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",