---
title: "Drop Unsupported Params"
url: "/docs/completion/drop_params"
canonical_url: "https://docs.litellm.ai/docs/completion/drop_params"
type: "docs"
last_updated: "2026-11-25"
summary: "Drop unsupported OpenAI params by your LLM Provider."
related:
  - "/docs/completion/provider_specific_params"
  - "/docs/completion/message_sanitization"
---
# Drop Unsupported Params

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


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 lets your code work across different providers without having to customize parameters for each one.

On the proxy, requests from Claude Code and Codex drop unsupported params by default. See [Claude Code and Codex on the proxy](#claude-code-and-codex-on-the-proxy).

## Quick Start 

```python 
import litellm 
import os 

# set keys 
os.environ["COHERE_API_KEY"] = "co-.."

litellm.drop_params = True # KEY CHANGE

response = litellm.completion(
                model="command-r",
                messages=[{"role": "user", "content": "Hey, how's it going?"}],
                response_format={"key": "value"},
            )
```

LiteLLM maps all supported openai params by provider + model (e.g. function calling is supported by anthropic on bedrock but not titan). 

See `litellm.get_supported_openai_params("command-r")` [**Code**](https://github.com/BerriAI/litellm/blob/main/litellm/utils.py#L3584)

If a provider/model doesn't support a particular param, you can drop it. 

## OpenAI Proxy Usage

```yaml
litellm_settings:
    drop_params: true
```

### Claude Code and Codex on the proxy

Requests from Claude Code and Codex, found by their user agent, drop unsupported params by default even when `drop_params` is unset, so their client-specific params do not fail on other providers. Set `drop_params: false` in `litellm_settings` to raise for them too. A `drop_params: false` on a single model in `model_list` does not turn this default off.

```yaml
litellm_settings:
    drop_params: false
```

On v1.103.0 to v1.108.x a bug makes these requests ignore `drop_params: false` in `litellm_settings`, and v1.109.0 fixes it.

## Pass drop_params in `completion(..)`

Just drop_params when calling specific models 

**SDK**

```python 
import litellm 
import os 

# set keys 
os.environ["COHERE_API_KEY"] = "co-.."

response = litellm.completion(
                model="command-r",
                messages=[{"role": "user", "content": "Hey, how's it going?"}],
                response_format={"key": "value"},
                drop_params=True
            )
```
**PROXY**

```yaml
- litellm_params:
    api_base: my-base
    model: openai/my-model
    drop_params: true # KEY CHANGE
  model_name: my-model
```

## Specify params to drop 

To drop specific params when calling a provider (E.g. 'logit_bias' for vllm)

Use `additional_drop_params`

**SDK**

```python
import litellm 
import os 

# set keys 
os.environ["COHERE_API_KEY"] = "co-.."

response = litellm.completion(
                model="command-r",
                messages=[{"role": "user", "content": "Hey, how's it going?"}],
                response_format={"key": "value"},
                additional_drop_params=["response_format"]
            )
```
**PROXY**

```yaml
- litellm_params:
    api_base: my-base
    model: openai/my-model
    additional_drop_params: ["response_format"] # KEY CHANGE
  model_name: my-model
```

**additional_drop_params**: List or null - Is a list of openai params you want to drop when making a call to the model.

### Nested Field Removal

Drop nested fields within complex objects using JSONPath-like notation:

**SDK**

```python
import litellm

response = litellm.completion(
    model="bedrock/us.anthropic.claude-sonnet-5",
    messages=[{"role": "user", "content": "Hello"}],
    tools=[{
        "name": "search",
        "description": "Search files",
        "input_schema": {"type": "object", "properties": {"query": {"type": "string"}}},
        "input_examples": [{"query": "test"}]  # Will be removed
    }],
    additional_drop_params=["tools[*].input_examples"]  # Remove from all tools
)
```

**PROXY**

```yaml
model_list:
  - model_name: my-bedrock-model
    litellm_params:
      model: bedrock/us.anthropic.claude-sonnet-5
      additional_drop_params: ["tools[*].input_examples"]  # Remove from all tools
```

**Supported syntax:**
- `field` - Top-level field
- `parent.child` - Nested object field
- `array[*]` - All array elements
- `array[0]` - Specific array index
- `tools[*].input_examples` - Field in all array elements
- `tools[0].metadata.field` - Specific index + nested field

**Example use cases:**
- Remove `input_examples` from tool definitions (Claude Code + AWS Bedrock)
- Drop provider-specific fields from nested structures
- Clean up nested parameters before sending to LLM

## Specify allowed openai params in a request

Tell litellm to allow specific openai params in a request. Use this if you get a `litellm.UnsupportedParamsError` and want to allow a param. LiteLLM will pass the param as is to the model.

**LiteLLM Python SDK**

In this example we pass `allowed_openai_params=["tools"]` to allow the `tools` param.

```python showLineNumbers title="Pass allowed_openai_params to LiteLLM Python SDK"
await litellm.acompletion(
    model="azure/o_series/<my-deployment-name>",
    api_key="xxxxx",
    api_base=api_base,
    messages=[{"role": "user", "content": "Hello! return a json object"}],
    tools=[{"type": "function", "function": {"name": "get_current_time", "description": "Get the current time in a given location.", "parameters": {"type": "object", "properties": {"location": {"type": "string", "description": "The city name, e.g. San Francisco"}}, "required": ["location"]}}}],
    allowed_openai_params=["tools"],
)
```
**LiteLLM Proxy**

When using litellm proxy you can pass `allowed_openai_params` in two ways:

1. Dynamically pass `allowed_openai_params` in a request
2. Set `allowed_openai_params` on the config.yaml file for a specific model

#### Dynamically pass allowed_openai_params in a request
In this example we pass `allowed_openai_params=["tools"]` to allow the `tools` param for a request sent to the model set on the proxy.

```python showLineNumbers title="Dynamically pass allowed_openai_params in a request"
import openai
from openai import AsyncAzureOpenAI

import openai
client = openai.OpenAI(
    api_key="anything",
    base_url="http://0.0.0.0:4000"
)

response = client.chat.completions.create(
    model="gpt-6-luna",
    messages = [
        {
            "role": "user",
            "content": "this is a test request, write a short poem"
        }
    ],
    extra_body={ 
        "allowed_openai_params": ["tools"]
    }
)
```

#### Set allowed_openai_params on config.yaml

You can also set `allowed_openai_params` on the config.yaml file for a specific model. This means that all requests to this deployment are allowed to pass in the `tools` param.

```yaml showLineNumbers title="Set allowed_openai_params on config.yaml"
model_list:
  - model_name: azure-o1-preview
    litellm_params:
      model: azure/o_series/<my-deployment-name>
      api_key: xxxxx
      api_base: https://openai-prod-test.openai.azure.com/openai/deployments/o1/chat/completions?api-version=2025-01-01-preview
      allowed_openai_params: ["tools"]
```

## Related pages

- [Provider-specific Params](https://docs.litellm.ai/docs/completion/provider_specific_params.md)
- [Message Sanitization](https://docs.litellm.ai/docs/completion/message_sanitization.md)
