agents icon indicating copy to clipboard operation
agents copied to clipboard

`openai.LLM` sends invalid reasoning_effort='minimal' for `gpt-5.4-mini`

Open sarvesh4396 opened this issue 5 months ago • 1 comments

Bug Description

When constructing openai.LLM(model="gpt-5.4-mini") without an explicit reasoning_effort, the plugin automatically sets reasoning_effort='minimal'. However, gpt-5.4-mini (and other mini/nano variants) only accept 'none', 'low', 'medium', 'high', 'xhigh' — causing a 400 API error:

APIStatusError: 400 - Unsupported value: 'reasoning_effort' does not support 'minimal' with this model.
Supported values are: 'none', 'low', 'medium', 'high', and 'xhigh'.

Expected Behavior

It should set to none

Reproduction Steps

Using 

openai.LLM(model="gpt-5.4-mini")

Operating System

macos Tahoe

Models Used

No response

Package Versions

livekit==1.1.8

Session/Room/Call IDs

No response

Proposed Solution

Adding a check for mini models.

Additional Context

No response

Screenshots and Recordings

No response

sarvesh4396 avatar Jun 18 '26 10:06 sarvesh4396

hi, thanks for creating this report! the solution has been merged in #6148 and will be in the next release

tinalenguyen avatar Jun 19 '26 01:06 tinalenguyen