8 views
-/https://github.com/berriai/litellm/issues/27351
GitHub ยท issue

#27351 [Bug]: gpt-5.1-mini / gpt-5.1-nano reject temperature when reasoning_effort is omitted (registry gap โ€” supports_none_reasoning_effort missing)

  • State: open
  • Author: @danielnc
  • Labels: llm translation

### What happened?

Per OpenAI's parameter compatibility guide, the **gpt-5.1 family** (including `gpt-5.1-mini` and `gpt-5.1-nano`) supports `temperature` when `reasoning_effort` is set to `'none'` or omitted (the API default). LiteLLM's own pre-flight check correctly applies this for plain `gpt-5.1` (verified working below) โ€” but `gpt-5.1-mini` and `gpt-5.1-nano` 400 with the same `UnsupportedParamsError` even when `reasoning_effort` is omitted.

Root cause appears to be a registry gap in `model_prices_and_context_window.json`:

- `gpt-5.1`: `supports_none_reasoning_effort: true` โœ“ (works correctly) - `gpt-5.1-mini`: **not in registry** โ†’ falls back to "not supported" default - `gpt-5.1-nano`: **not in registry** โ†’ same

Because `OpenAIGPT5Config.map_openai_params` gates the `temperature` pass-through on `self._supports_reasoning_effort_level(model, "none")`, missing-from-registry โ†’ `False` โ†’ strict rejection. Plain `gpt-5.1` is in the registry with `supports_none_reasoning_effort=true`, which is why it works.

### Reproduction

LiteLLM v1.83.10-stable, called through standard `/v1/chat/completions` (no Responses-API routing, no Azure):

**Case A โ€” `openai/gpt-5.1` (control, in rโ€ฆ

GitHub resolver

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

Refresh page
vote history (1 events)
#0 of 0 ยท 31d17h55m55s ago โ€” entered ยท #import:https:::github.com:berriai:litellm post #3029
The right issue is harder because it likely requires tracing authorization data across backend endpoints, MCP access-group resolution, and UI state/rendering, plus cross-layer regression coverage. The left issue appears comparatively localized to model metadata and parameter-mapping tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search