mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-18 02:04:06 -05:00
[GH-ISSUE #12298] issue: When a fresh new model is downloaded from ollama, you can't hide it unless you edit first #87281
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 @Lutherwaves on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12298
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Installation Method
Other
Open WebUI Version
0.6.0
Ollama Version (if applicable)
1.9.0
Operating System
Ubuntu 22.04
Browser (if applicable)
Mozilla Firefox 28.8.1esr (64-bit)
Confirmation
README.md.Expected Behaviour
When a new model is created, you should be able to hide it, and if it fails, it should present an error.
Actual Behaviour
When a new model is downloaded and doesn't have params, the request to hide the model should succeed, or an error should be presented otherwise
Steps to Reproduce
Logs & Screenshots
Log json:
{"detail":[{"type":"missing","loc":["body","params"],"msg":"Field required","input":{"id":"tinyllama:latest","name":"tinyllama:latest","object":"model","created":1743521808,"owned_by":"ollama","ollama":{"name":"tinyllama:latest","model":"tinyllama:latest","modified_at":"2025-04-01T15:28:48.547329603Z","size":637700138,"digest":"2644915ede352ea7bdfaff0bfac0be74c719d5d5202acb63a6fb095b52f394a4","details":{"parent_model":"","format":"gguf","family":"llama","families":["llama"],"parameter_size":"1B","quantization_level":"Q4_0"},"urls":[0]},"tags":[],"is_active":true,"meta":{"hidden":true},"base_model_id":null}}]}Additional Information
It seems the bug is that the parameters upon downloading the model are not available as part of the model, so when it is hidden, the call doesn't append the params to it, I presume.
If I click on Edit the model, then save, then click Hide it works since now Openwebui saved the model with empty (default) params.
@Lutherwaves commented on GitHub (Apr 1, 2025):
I'd say this is a good-first-issue, but leaving up to you to judge
@Lutherwaves commented on GitHub (Apr 8, 2025):
Also @tjbck , another thing is that if models are hidden, the chat selector still shows the labels of other models (the hidden ones). I suppose that is unnecessary noise. Note that I am the Admin, so this may affect admins only
@Anaphylaxis commented on GitHub (Apr 8, 2025):
The model list doesn't refresh when these things in the admin settings are changed. It should and would solve a lot of problems -- such as ordering models not working without a refresh
@tjbck commented on GitHub (Apr 10, 2025):
@Lutherwaves should be fixed.
@Anaphylaxis intended behaviour.
@tjbck commented on GitHub (Apr 13, 2025):
Addressed with
f6c8184a74