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
docs: Explain default behavior of drop_params (#17658)
Ishaan Jaff7b47c0f583e9
diff --git a/docs/my-website/docs/completion/drop_params.md b/docs/my-website/docs/completion/drop_params.mdindex 590d9a45955..a81fd897b4e 100644--- a/docs/my-website/docs/completion/drop_params.md+++ b/docs/my-website/docs/completion/drop_params.md@@ -5,6 +5,14 @@ import TabItem from '@theme/TabItem';Drop unsupported OpenAI params by your LLM Provider.+## Default Behavior++**By default, LiteLLM raises an exception** if you send a parameter to a model that doesn't support it.++For example, if you send `temperature=0.2` to a model that doesn't support the `temperature` parameter, LiteLLM will raise an exception.++**When `drop_params=True` is set**, LiteLLM will drop the unsupported parameter instead of raising an exception. This allows your code to work seamlessly across different providers without having to customize parameters for each one.+## Quick Start```python