9 views
-/https://github.com/berriai/litellm/issues/31451
GitHub · issue

#31451 [Bug]: unable to use claude code -> litellm -> gpt5.x

  • State: open
  • Author: @matteo-rama
  • Labels: bug, proxy, llm translation, claude code

### Check for existing issues

- [x] I have searched the existing issues and checked that my issue is not a duplicate.

### What happened?

if i try to use claude code to connect to litellm and use gpt model i got this exeption

``` ❯ /model gpt-5.3-codex ⎿ API error: 400 {"error":{"message":"litellm.BadRequestError: OpenAIException - {\n "error": {\n "message": "Invalid 'max_output_tokens': integer below minimum value. Expected a value >= 16, but got 1 instead.",\n "type": "invalid_request_error",\n "param": "max_output_tokens",\n "code": "integer_below_min_value"\n }\n}. Received Model Group=gpt-5.3-codex\nAvailable Model Group Fallbacks=None","type":null,"param":null,"code":"400"}} ```

gpt model are configured from UI and i added

``` { "custom_llm_provider": "openai", "use_in_pass_through": false, "use_litellm_proxy": false, "merge_reasoning_content_in_choices": false, "model": "gpt-5.3-codex", "max_output_tokens": 16, "tags": [], "litellm_credential_name": "openai/*-credential-c503c864-9fe7-4e41-9948-6aaa08a5d07f", "guardrails": [] } ```

in LiteLLM Params

testing the model via litellm ux report

``` Success Connection test successful…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d18h42m11s ago — entered · #import:https:::github.com:berriai:litellm post #2264
Issue 31451 is harder because it requires tracing and correcting cross-protocol request translation across proxy, client, and provider-specific parameter handling, with compatibility and regression risks across multiple model families. Issue 30004 appears more localized to defensive response normalization in embedding handlers, despite needing coverage across a few provider paths.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search