agents
agents copied to clipboard
`openai.LLM` sends invalid reasoning_effort='minimal' for `gpt-5.4-mini`
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
hi, thanks for creating this report! the solution has been merged in #6148 and will be in the next release