Skip to content

Commit 7b47c0f

Browse files
ishaan-jaffcursoragentishaan-berri
authored
docs: Explain default behavior of drop_params (#17658)
Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: ishaan <[email protected]>
1 parent 0c78cd7 commit 7b47c0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/my-website/docs/completion/drop_params.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ import TabItem from '@theme/TabItem';
55

66
Drop unsupported OpenAI params by your LLM Provider.
77

8+
## Default Behavior
9+
10+
**By default, LiteLLM raises an exception** if you send a parameter to a model that doesn't support it.
11+
12+
For example, if you send `temperature=0.2` to a model that doesn't support the `temperature` parameter, LiteLLM will raise an exception.
13+
14+
**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.
15+
816
## Quick Start
917

1018
```python

0 commit comments

Comments
 (0)