mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #22260] issue: attempting to unload a model from ollama while using owui as proxy fails due to incorrect field verification #58345
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 @Umutayb on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22260
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.8
Ollama Version (if applicable)
0.17.6
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
curl --location --request POST 'http://localhost:11435/api/generate'
--header 'Content-Type: application/json'
--data-raw '{
"model": "gemma3:4b",
"keep_alive": 0
}'
{"model":"gemma3:4b","created_at":"2026-03-05T10:51:52.284097808Z","response":"","done":true,"done_reason":"unload"}%
Actual Behavior
curl --location --request POST 'http://localhost:3000/ollama/api/generate'
--header 'Content-Type: application/json'
--data-raw '{
"model": "gemma3:4b",
"keep_alive": 0
}'
{"detail":[{"type":"missing","loc":["body","prompt"],"msg":"Field required","input":{"model":"gemma3:4b","keep_alive":0}}]}
Check https://ollama.apidog.io/unload-a-model-14808502e0 for the api spec.
Steps to Reproduce
start owui via docker.
add a model (gemma3:4b)
call ollama service via docker image started by owui docker compose.
curl --location --request POST 'http://localhost:11435/api/generate'
--header 'Content-Type: application/json'
--data-raw '{
"model": "gemma3:4b",
"keep_alive": 0
}'
observe that the request succeeds:
{"model":"gemma3:4b","created_at":"2026-03-05T10:51:52.284097808Z","response":"","done":true,"done_reason":"unload"}%
now do the same but call ollama with owui as the proxy:
curl --location --request POST 'http://localhost:3000/ollama/api/generate'
--header 'Content-Type: application/json'
--data-raw '{
"model": "gemma3:4b",
"keep_alive": 0
}'
observe failure:
{"detail":[{"type":"missing","loc":["body","prompt"],"msg":"Field required","input":{"model":"gemma3:4b","keep_alive":0}}]}
Logs & Screenshots
curl --location --request POST 'http://localhost:3000/ollama/api/generate'
--header 'Content-Type: application/json'
--data-raw '{
"model": "gemma3:4b",
"keep_alive": 0
}'
{"detail":[{"type":"missing","loc":["body","prompt"],"msg":"Field required","input":{"model":"gemma3:4b","keep_alive":0}}]}
Additional Information
No response
@tjbck commented on GitHub (Mar 8, 2026):
95b65ff751