mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #22524] issue: Newer OpenAI model max_tokens parameter bug #35262
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 @Art-1313 on GitHub (Mar 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22524
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
0.8.10
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
Browser (if applicable)
Safari
Confirmation
README.md.Expected Behavior
Title generation with latest models from OpenAI
Actual Behavior
Receive an error during execution. max_tokens parametr shoud be changed to max_completion_tokens
Steps to Reproduce
Select gpt-5.2 as a task model
Logs & Screenshots
{
"error": {
"message": "OpenAIException - Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.. Received Model Group=openai/gpt-5.2\nAvailable Model Group Fallbacks=None",
"type": "invalid_request_error",
"param": "max_tokens",
"code": "400"
}
}
Additional Information
No response
@Art-1313 commented on GitHub (Mar 10, 2026):
@Urammar commented on GitHub (Mar 15, 2026):
Gorrillions of tokens. Plz fix I will literally die.
@tjbck commented on GitHub (Mar 22, 2026):
Custom model params should be used.