litellm - ✅(Solved) Fix [Feature]: tool_choice param for gpt 5.3 [1 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#23267Fetched 2026-04-08 00:37:54
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
0
Author
Participants
Timeline (top)
labeled ×3referenced ×2closed ×1commented ×1

Fix Action

Fixed

PR fix notes

PR #23275: feat(openai): add missing supports_web_search to OpenAI models

Description (problem / solution / changelog)

Relevant issues

Fixes #23267

Pre-Submission checklist

  • I have Added testing in the tests/test_litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific issue

What this PR does

Adds supports_web_search: true to 31 OpenAI models that support the web_search_preview tool via the Responses API. Each model was tested directly against the OpenAI API to confirm support.

This enables the Router to correctly include these deployments when requests use web search tools, instead of filtering them out.

Models without web_search:

  • o1-pro — returns "Tool 'web_search_preview' is not supported"
  • gpt-audio / gpt-audio-mini — not supported
  • gpt-4.1-nano — not supported
  • codex-mini-latest — model not found

Changed files

  • model_prices_and_context_window.json (modified, +40/-14)
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

The Feature

I get

litellm.UnsupportedParamsError: openai does not support parameters: ['tool_choice'], for model=gpt-5.3. To drop these, set litellm.drop_params=True or for proxy:

litellm_settings: drop_params: true

on litellm 1.81.14

Motivation, pitch

Need this to be compatible, same as with gpt 5.2, other versions, etc.

What part of LiteLLM is this about?

SDK (litellm Python package)

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

extent analysis

Fix Plan

To resolve the litellm.UnsupportedParamsError, you need to drop the unsupported parameters. You can achieve this by setting drop_params=True in your litellm settings.

Step-by-Step Solution

  • Update your litellm settings to include drop_params: true:
litellm_settings = {
    'drop_params': True
}
  • Alternatively, you can pass drop_params=True when initializing the litellm model:
model = litellm.Model('gpt-5.3', drop_params=True)
  • If you are using a configuration file, add the following line to your litellm_settings section:
litellm_settings:
  drop_params: true

Verification

After applying the fix, verify that the error is resolved by running your code again. The litellm.UnsupportedParamsError should no longer occur.

Extra Tips

  • Make sure to update your litellm package to the latest version (1.81.14 or later) to ensure compatibility with the drop_params setting.
  • If you encounter any further issues, refer to the litellm documentation or open a new issue on the litellm GitHub page.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING