[GH-ISSUE #12298] issue: When a fresh new model is downloaded from ollama, you can't hide it unless you edit first #103536

Closed
opened 2026-05-18 01:00:52 -05:00 by GiteaMirror · 5 comments
Owner

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

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

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

  • 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 listed steps to reproduce the bug in detail.

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

  1. Go to /admin/settings
  2. Go to Models
  3. Click on Manage models and download a new model
  4. Once the model is downloaded, close the modal
  5. Click on the three dots next to the new model
  6. Click hide model
  7. Success messages are presented. However, the model doesn't become "hidden"
  8. Console logs show a POST error

Logs & Screenshots

Image
Image
Image
Image

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.

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 - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### 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 - [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 listed steps to reproduce the bug in detail. ### 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 1. Go to /admin/settings 2. Go to Models 3. Click on Manage models and download a new model 4. Once the model is downloaded, close the modal 5. Click on the three dots next to the new model 6. Click hide model 7. Success messages are presented. However, the model doesn't become "hidden" 8. Console logs show a POST error ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/fae79a1b-0eb7-402d-868d-8b1e9a77ff93) ![Image](https://github.com/user-attachments/assets/2c5e3e71-a401-48ad-acdc-c207d534ada1) ![Image](https://github.com/user-attachments/assets/d2a59bb5-1d8d-46bb-b011-5175cd991486) ![Image](https://github.com/user-attachments/assets/16a8f258-4569-40db-9897-21e86077c8e2) 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.
GiteaMirror added the bug label 2026-05-18 01:00:52 -05:00
Author
Owner

@Lutherwaves commented on GitHub (Apr 1, 2025):

I'd say this is a good-first-issue, but leaving up to you to judge

<!-- gh-comment-id:2769817272 --> @Lutherwaves commented on GitHub (Apr 1, 2025): I'd say this is a good-first-issue, but leaving up to you to judge
Author
Owner

@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

Image
<!-- gh-comment-id:2785366342 --> @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 <img width="522" alt="Image" src="https://github.com/user-attachments/assets/f369dacb-d8c6-40ce-a899-3738161807d6" />
Author
Owner

@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

<!-- gh-comment-id:2787811465 --> @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
Author
Owner

@tjbck commented on GitHub (Apr 10, 2025):

@Lutherwaves should be fixed.

@Anaphylaxis intended behaviour.

<!-- gh-comment-id:2794947299 --> @tjbck commented on GitHub (Apr 10, 2025): @Lutherwaves should be fixed. @Anaphylaxis intended behaviour.
Author
Owner

@tjbck commented on GitHub (Apr 13, 2025):

Addressed with f6c8184a74

<!-- gh-comment-id:2799542819 --> @tjbck commented on GitHub (Apr 13, 2025): Addressed with f6c8184a74d69dcdce8fec67b5568befaa691e54
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#103536