mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #23566] bug: [Bug] OpenAI gpt-5.1 API rejection: reasoning_effort parameter mismatch and local 500 error on Custom Param bypass #35544
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NinesRepo on GitHub (Apr 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23566
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
No response
Operating System
Windows 11 / Docker
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Note:
• Open WebUI Version: v0.8.12
• API Endpoint: OpenAI
• Model ID: gpt-5.1-2025-11-13
Expected Behavior:
Open WebUI should map the UI toggle to the updated
reasoning.effortkey at the root level of the JSON payload before sending it to OpenAI, bypassing the need for a custom parameter injection.Actual Behavior
OpenAI’s updated API schema for GPT-5.1 models requires the reasoning parameter to be formatted with dot-notation as
reasoning.effort. Currently, Open WebUI sends this parameter with an underscore (reasoning_effort), resulting in an instant API rejection.Attempting to bypass this using the Custom Parameters feature wraps the correct parameter in a custom_params object, which triggers a local 500 Internal Server Error when routing.
Steps to Reproduce
Steps to Reproduce:
Path A (The API Rejection):
Path B (The local 500 Crash):
Logs & Screenshots
Additional Information
Additional Context:
I avoided manually editing the SQLite
webui.dbto force the parameter to the root level due to the risk of database corruption and breaking chat history links.Currently unable to enable reasoning for 5.1 via API.
@pr-validator-bot commented on GitHub (Apr 10, 2026):
⚠️ Missing Issue Title Prefix
@NinesRepo, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@Classic298 commented on GitHub (Apr 10, 2026):
Which UI toggle?
If you mean reasoning effort in advanced model parameters, this is for chat completions
If you use Responses API, which you appear to be using, then you should use the custom parameters. You can add custom paramater in the advanced model settings at the end.
This was asked a few days ago already. Search for existing issues, especially for closed issues. Custom param should be used here
@Classic298 commented on GitHub (Apr 10, 2026):
Cannot reproduce - how did you configure your connection