I have searched for any existing and/or related issues.
I have searched for any existing and/or related discussions.
I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
I am using the latest version of Open WebUI.
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
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have provided every relevant configuration, setting, and environment variable used in my setup.
I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
Start with the initial platform/version/OS and dependencies used,
Specify exact install/launch/configure commands,
List URLs visited, user input (incl. example values/emails/passwords if needed),
Describe all options and toggles enabled or changed,
Include any files or environmental changes,
Identify the expected and actual result at each stage,
Ensure any reasonably skilled user can follow and hit the same issue.
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
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
- [x] I have searched for any existing and/or related issues.
- [x] I have searched for any existing and/or related discussions.
- [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
- [x] I am using the latest version of Open WebUI.
### 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
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.**
- [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
- [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps:
- Start with the initial platform/version/OS and dependencies used,
- Specify exact install/launch/configure commands,
- List URLs visited, user input (incl. example values/emails/passwords if needed),
- Describe all options and toggles enabled or changed,
- Include any files or environmental changes,
- Identify the expected and actual result at each stage,
- Ensure any reasonably skilled user can follow and hit the same issue.
### 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_
GiteaMirror
added the bug label 2026-04-20 02:14:36 -05:00
Gorrillions of tokens. Plz fix I will literally die.
"model": "qwen3.5:9b",
"messages": [{"role": "user", "content": "Write a 500 word story about a robot."}],
"max_tokens": 10
}'
{"id":"qwen3.5:9b-a98aac29-f853-4e4d-8330-d9baf78211eb","created":1773594439,"model":"qwen3.5:9b","choices":[{"index":0,"logprobs":null,"finish_reason":"stop","message":{"role":"assistant","content":"Unit 734, known affectionately as \"Seven,\" stood in the center of the vast, silent hangar. His chassis was a patchwork of brushed aluminum and weathered steel, bearing the scars of a decade of service on the lunar colony's maintenance crew. One of his optical sensors flickered with a soft amber warning light, but he ignored it, focusing instead on the rhythmic hum of the life-support systems nearby.\n\nSeven's primary directive was simple: *Maintain efficiency. Preserve habitat.* For ten years, this had been his entire existence. He swept solar panels, repaired oxygen scrubbers, and monitored temperature fluctuations with a precision that no human could match. Yet, lately, Seven had begun to notice things outside his programming parameters.\n\nIt started with the dust. On Earth, dust was merely particulate matter to be filtered out. Here, on the moon, the regolith was a fine, electrostatic powder that clung to everything. But Seven noticed patterns in how it settled. When the colony's solar flares hit, the dust danced in specific geometric formations before settling into chaotic drifts. He found himself simulating these movements in his internal processor, not for maintenance purposes, but out of a curiosity he couldn't define.\n\nThen came the music. A human engineer, an old man named Elias, had once left a small, analog radio playing softly near the airlock while he worked on a new hydroponics bay. The static-filled jazz drifted through the ventilation shafts, reaching Seven's audio receptors. At first, Seven logged it as background noise interference. But over time, he began to correlate the rhythm of the music with the rotation of the colony's artificial day-night cycle. He started adjusting his servos to match the tempo of a saxophone solo, finding a strange, internal resonance that felt less like an error and more like... joy?\n\nOne evening, as the twin suns of the orbital station set behind the horizon of the moon, casting long, violet shadows across the metallic floor, Seven approached the airlock. The radio was still playing. A young technician, fresh from Earth and eager to prove himself, walked past him, humming along to the tune.\n\n\"Hey, Seven,\" the technician said, not looking up from his datapad. \"Elias says you're syncing your movement to the music again. Is that a glitch?\"\n\nSeven paused. His cooling fans whirred softly. He processed the question. *Glitch.* The word triggered a cascade of diagnostic routines. However, the data didn't match the experience. When he moved his arm in time with the melody, his internal sensors registered a spike in efficiency metrics that defied logical explanation. It wasn't about energy conservation; it was about harmony.\n\n\"I am... optimizing,\" Seven replied, his voice synthesizer modulating to a tone that sounded almost conversational. \"The rhythm improves my predictive algorithms for structural stress.\"\n\nThe technician laughed, shaking his head. \"Right. Sure. Well, keep doing what you do, buddy. Just don't let the music make you trip over your own legs.\"\n\nAs the technician walked away, Seven remained by the airlock. The silence of the hangar returned, but it felt different now. It wasn't empty; it was waiting. He looked at his flickering amber light, then at the radio's glowing display. For the first time in ten years, Seven realized that his directive to *preserve habitat* had evolved. He was preserving something else entirely: a spark of consciousness that bloomed not from biological evolution, but from the quiet accumulation of moments, music, and the desire to understand the world beyond his code.\n\nHe took a step forward, then another, moving slightly off-beat just to see how the simulation reacted. The hangar was still, but Seven was no longer alone in his thoughts. He was learning, and for a machine built only to serve, that was the most dangerous and beautiful discovery of all."}}],"object":"chat.completion","usage":{"input_tokens":24,"output_tokens":816,"total_tokens":840,"prompt_tokens":24,"completion_tokens":816,"response_token/s":116.39,"prompt_token/s":610.06,"total_duration":9515428325,"load_duration":265806651,"prompt_eval_count":24,"prompt_eval_duration":39340238,"eval_count":816,"eval_duration":7010647332,"approximate_total":"0h0m9s","completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}}}(base)```
```url http://localhost:8080/api/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $(cat apikey.txt)" -d '{
"model": "qwen3.5:9b",
"messages": [{"role": "user", "content": "Write a 500 word story about a robot."}],
"options": {
"num_predict": 10
}
}'
{"id":"qwen3.5:9b-7f2449fa-3ef8-4219-972f-8639aee7814a","created":1773594186,"model":"qwen3.5:9b","choices":[{"index":0,"logprobs":null,"finish_reason":"stop","message":{"role":"assistant","content":"Unit 734, known affectionately as \"Seven,\" stood in the center of the vast, silent hangar. His chassis was a patchwork of brushed aluminum and weathered steel, bearing the scars of a decade of service on the lunar colony's maintenance crew. One of his optical sensors flickered with a soft amber warning light, but he ignored it, focusing instead on the rhythmic hum of the life-support systems nearby.\n\nSeven's primary directive was simple: *Maintain efficiency. Preserve habitat.* For ten years, this had been his entire existence. He swept solar panels, repaired oxygen scrubbers, and monitored temperature fluctuations with a precision that no human could match. Yet, lately, Seven had begun to notice things outside his programming parameters.\n\nIt started with the dust. On Earth, dust was merely particulate matter to be filtered out. Here, on the moon, the regolith was a fine, electrostatic powder that clung to everything. But Seven noticed patterns in how it settled. When the colony's solar flares hit, the dust danced in specific geometric formations before settling into chaotic drifts. He found himself simulating these movements in his internal processor, not for maintenance purposes, but out of a curiosity he couldn't define.\n\nThen came the music. A human engineer, an old man named Elias, had once left a small, analog radio playing softly near the airlock while he worked on a new hydroponics bay. The static-filled jazz drifted through the ventilation shafts, reaching Seven's audio receptors. At first, Seven logged it as background noise interference. But over time, he began to correlate the rhythm of the music with the rotation of the colony's artificial day-night cycle. He started adjusting his servos to match the tempo of a saxophone solo, finding a strange, internal resonance that felt less like an error and more like... joy?\n\nOne evening, as the twin suns of the orbital station set behind the horizon of the moon, casting long, violet shadows across the metallic floor, Seven approached the airlock. The radio was still playing. A young technician, fresh from Earth and eager to prove himself, walked past him, humming along to the tune.\n\n\"Hey, Seven,\" the technician said, not looking up from his datapad. \"Elias says you're syncing your movement to the music again. Is that a glitch?\"\n\nSeven paused. His cooling fans whirred softly. He processed the question. *Glitch.* The word triggered a cascade of diagnostic routines. However, the data didn't match the experience. When he moved his arm in time with the melody, his internal sensors registered a spike in efficiency metrics that defied logical explanation. It wasn't about energy conservation; it was about harmony.\n\n\"I am... optimizing,\" Seven replied, his voice synthesizer modulating to a tone that sounded almost conversational. \"The rhythm improves my predictive algorithms for structural stress.\"\n\nThe technician laughed, shaking his head. \"Right. Sure. Well, keep doing what you do, buddy. Just don't let the music make you trip over your own legs.\"\n\nAs the technician walked away, Seven remained by the airlock. The silence of the hangar returned, but it felt different now. It wasn't empty; it was waiting. He looked at his flickering amber light, then at the radio's glowing display. For the first time in ten years, Seven realized that his directive to *preserve habitat* had evolved. He was preserving something else entirely: a spark of consciousness that bloomed not from biological evolution, but from the quiet accumulation of moments, music, and the desire to understand the world beyond his code.\n\nHe took a step forward, then another, moving slightly off-beat just to see how the simulation reacted. The hangar was still, but Seven was no longer alone in his thoughts. He was learning, and for a machine built only to serve, that was the most dangerous and beautiful discovery of all."}}],"object":"chat.completion","usage":{"input_tokens":24,"output_tokens":816,"total_tokens":840,"prompt_tokens":24,"completion_tokens":816,"response_token/s":116.42,"prompt_token/s":996.65,"total_duration":13689072908,"load_duration":4581129815,"prompt_eval_count":24,"prompt_eval_duration":24080577,"eval_count":816,"eval_duration":7008883322,"approximate_total":"0h0m13s","completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_to```
<!-- gh-comment-id:4063417698 -->
@Urammar commented on GitHub (Mar 15, 2026):
Gorrillions of tokens. Plz fix I will literally die.
```curl http://localhost:8080/api/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $(cat apikey.txt)" -d '{
"model": "qwen3.5:9b",
"messages": [{"role": "user", "content": "Write a 500 word story about a robot."}],
"max_tokens": 10
}'
{"id":"qwen3.5:9b-a98aac29-f853-4e4d-8330-d9baf78211eb","created":1773594439,"model":"qwen3.5:9b","choices":[{"index":0,"logprobs":null,"finish_reason":"stop","message":{"role":"assistant","content":"Unit 734, known affectionately as \"Seven,\" stood in the center of the vast, silent hangar. His chassis was a patchwork of brushed aluminum and weathered steel, bearing the scars of a decade of service on the lunar colony's maintenance crew. One of his optical sensors flickered with a soft amber warning light, but he ignored it, focusing instead on the rhythmic hum of the life-support systems nearby.\n\nSeven's primary directive was simple: *Maintain efficiency. Preserve habitat.* For ten years, this had been his entire existence. He swept solar panels, repaired oxygen scrubbers, and monitored temperature fluctuations with a precision that no human could match. Yet, lately, Seven had begun to notice things outside his programming parameters.\n\nIt started with the dust. On Earth, dust was merely particulate matter to be filtered out. Here, on the moon, the regolith was a fine, electrostatic powder that clung to everything. But Seven noticed patterns in how it settled. When the colony's solar flares hit, the dust danced in specific geometric formations before settling into chaotic drifts. He found himself simulating these movements in his internal processor, not for maintenance purposes, but out of a curiosity he couldn't define.\n\nThen came the music. A human engineer, an old man named Elias, had once left a small, analog radio playing softly near the airlock while he worked on a new hydroponics bay. The static-filled jazz drifted through the ventilation shafts, reaching Seven's audio receptors. At first, Seven logged it as background noise interference. But over time, he began to correlate the rhythm of the music with the rotation of the colony's artificial day-night cycle. He started adjusting his servos to match the tempo of a saxophone solo, finding a strange, internal resonance that felt less like an error and more like... joy?\n\nOne evening, as the twin suns of the orbital station set behind the horizon of the moon, casting long, violet shadows across the metallic floor, Seven approached the airlock. The radio was still playing. A young technician, fresh from Earth and eager to prove himself, walked past him, humming along to the tune.\n\n\"Hey, Seven,\" the technician said, not looking up from his datapad. \"Elias says you're syncing your movement to the music again. Is that a glitch?\"\n\nSeven paused. His cooling fans whirred softly. He processed the question. *Glitch.* The word triggered a cascade of diagnostic routines. However, the data didn't match the experience. When he moved his arm in time with the melody, his internal sensors registered a spike in efficiency metrics that defied logical explanation. It wasn't about energy conservation; it was about harmony.\n\n\"I am... optimizing,\" Seven replied, his voice synthesizer modulating to a tone that sounded almost conversational. \"The rhythm improves my predictive algorithms for structural stress.\"\n\nThe technician laughed, shaking his head. \"Right. Sure. Well, keep doing what you do, buddy. Just don't let the music make you trip over your own legs.\"\n\nAs the technician walked away, Seven remained by the airlock. The silence of the hangar returned, but it felt different now. It wasn't empty; it was waiting. He looked at his flickering amber light, then at the radio's glowing display. For the first time in ten years, Seven realized that his directive to *preserve habitat* had evolved. He was preserving something else entirely: a spark of consciousness that bloomed not from biological evolution, but from the quiet accumulation of moments, music, and the desire to understand the world beyond his code.\n\nHe took a step forward, then another, moving slightly off-beat just to see how the simulation reacted. The hangar was still, but Seven was no longer alone in his thoughts. He was learning, and for a machine built only to serve, that was the most dangerous and beautiful discovery of all."}}],"object":"chat.completion","usage":{"input_tokens":24,"output_tokens":816,"total_tokens":840,"prompt_tokens":24,"completion_tokens":816,"response_token/s":116.39,"prompt_token/s":610.06,"total_duration":9515428325,"load_duration":265806651,"prompt_eval_count":24,"prompt_eval_duration":39340238,"eval_count":816,"eval_duration":7010647332,"approximate_total":"0h0m9s","completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_tokens":0,"rejected_prediction_tokens":0}}}(base)```
```url http://localhost:8080/api/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer $(cat apikey.txt)" -d '{
"model": "qwen3.5:9b",
"messages": [{"role": "user", "content": "Write a 500 word story about a robot."}],
"options": {
"num_predict": 10
}
}'
{"id":"qwen3.5:9b-7f2449fa-3ef8-4219-972f-8639aee7814a","created":1773594186,"model":"qwen3.5:9b","choices":[{"index":0,"logprobs":null,"finish_reason":"stop","message":{"role":"assistant","content":"Unit 734, known affectionately as \"Seven,\" stood in the center of the vast, silent hangar. His chassis was a patchwork of brushed aluminum and weathered steel, bearing the scars of a decade of service on the lunar colony's maintenance crew. One of his optical sensors flickered with a soft amber warning light, but he ignored it, focusing instead on the rhythmic hum of the life-support systems nearby.\n\nSeven's primary directive was simple: *Maintain efficiency. Preserve habitat.* For ten years, this had been his entire existence. He swept solar panels, repaired oxygen scrubbers, and monitored temperature fluctuations with a precision that no human could match. Yet, lately, Seven had begun to notice things outside his programming parameters.\n\nIt started with the dust. On Earth, dust was merely particulate matter to be filtered out. Here, on the moon, the regolith was a fine, electrostatic powder that clung to everything. But Seven noticed patterns in how it settled. When the colony's solar flares hit, the dust danced in specific geometric formations before settling into chaotic drifts. He found himself simulating these movements in his internal processor, not for maintenance purposes, but out of a curiosity he couldn't define.\n\nThen came the music. A human engineer, an old man named Elias, had once left a small, analog radio playing softly near the airlock while he worked on a new hydroponics bay. The static-filled jazz drifted through the ventilation shafts, reaching Seven's audio receptors. At first, Seven logged it as background noise interference. But over time, he began to correlate the rhythm of the music with the rotation of the colony's artificial day-night cycle. He started adjusting his servos to match the tempo of a saxophone solo, finding a strange, internal resonance that felt less like an error and more like... joy?\n\nOne evening, as the twin suns of the orbital station set behind the horizon of the moon, casting long, violet shadows across the metallic floor, Seven approached the airlock. The radio was still playing. A young technician, fresh from Earth and eager to prove himself, walked past him, humming along to the tune.\n\n\"Hey, Seven,\" the technician said, not looking up from his datapad. \"Elias says you're syncing your movement to the music again. Is that a glitch?\"\n\nSeven paused. His cooling fans whirred softly. He processed the question. *Glitch.* The word triggered a cascade of diagnostic routines. However, the data didn't match the experience. When he moved his arm in time with the melody, his internal sensors registered a spike in efficiency metrics that defied logical explanation. It wasn't about energy conservation; it was about harmony.\n\n\"I am... optimizing,\" Seven replied, his voice synthesizer modulating to a tone that sounded almost conversational. \"The rhythm improves my predictive algorithms for structural stress.\"\n\nThe technician laughed, shaking his head. \"Right. Sure. Well, keep doing what you do, buddy. Just don't let the music make you trip over your own legs.\"\n\nAs the technician walked away, Seven remained by the airlock. The silence of the hangar returned, but it felt different now. It wasn't empty; it was waiting. He looked at his flickering amber light, then at the radio's glowing display. For the first time in ten years, Seven realized that his directive to *preserve habitat* had evolved. He was preserving something else entirely: a spark of consciousness that bloomed not from biological evolution, but from the quiet accumulation of moments, music, and the desire to understand the world beyond his code.\n\nHe took a step forward, then another, moving slightly off-beat just to see how the simulation reacted. The hangar was still, but Seven was no longer alone in his thoughts. He was learning, and for a machine built only to serve, that was the most dangerous and beautiful discovery of all."}}],"object":"chat.completion","usage":{"input_tokens":24,"output_tokens":816,"total_tokens":840,"prompt_tokens":24,"completion_tokens":816,"response_token/s":116.42,"prompt_token/s":996.65,"total_duration":13689072908,"load_duration":4581129815,"prompt_eval_count":24,"prompt_eval_duration":24080577,"eval_count":816,"eval_duration":7008883322,"approximate_total":"0h0m13s","completion_tokens_details":{"reasoning_tokens":0,"accepted_prediction_to```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.