[GH-ISSUE #21959] issue: Enable/Disable All Models in the Admin Panel not working #35155

Closed
opened 2026-04-25 09:23:07 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @thomase1234 on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21959

Check Existing Issues

  • 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

Docker

Open WebUI Version

v0.8.5

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

Browser (if applicable)

Latest stable Chrome and stable Firefox on Ubuntu

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

On this page
http://ubuntu-docker.:8282/admin/settings/models
I expected to be able to use the "Enable All" and "Disable All" to enable/disable all models at once.

Actual Behavior

Visually, it seems like the models are disabled or enabled because all toggles are flipped. However, if you refresh the page by browsing to another settings page and going back, you'll see that the action was not successful.

The only option is to flip each model one by one.

Steps to Reproduce

  1. Start with a clean install of open-webui using docker.
  2. I added docker labels to allow traefik to provide reverse proxy functionality. I also tested the bug without going through traefik by exposing a port. No difference.
  3. I'm using Keycloak as a openid auth provider. I also tested the bug by directly logging without Keycloak. No difference.
  4. I added an openrouter.ai connection + key and disabled all other connections.
  5. Now I went to the models list and have the problem.
    http://ubuntu-docker.:8282/admin/settings/models

Logs & Screenshots

Browser

=== HTTP Request ===
POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-code-fast-1 HTTP/1.1
Host: ubuntu-docker..:8282
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Accept: application/json
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate
Referer: http://ubuntu-docker..:8282/admin/settings/models
Content-Type: application/json
authorization: Bearer
Origin: http://ubuntu-docker..:8282
Connection: keep-alive
Cookie: _ga_5VPR3EBECJ=GS2.1.s1768992873$o2$g0$t1768992908$j25$l0$h0; _ga=GA1.1.413728482.1765534637; token=
Priority: u=0
Content-Length: 0

=== HTTP Response ===
HTTP/1.1 401 Unauthorized
date: Sat, 28 Feb 2026 09:32:18 GMT
server: uvicorn
content-length: 57
content-type: application/json
x-process-time: 0
access-control-allow-origin: http://ubuntu-docker..:8282
access-control-allow-credentials: true
vary: Origin

Docker logs

2026-02-28 09:32:18.909 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55636 - "POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-code-fast-1 HTTP/1.1" 401

2026-02-28 09:32:18.920 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55626 - "POST /api/v1/models/model/toggle?id=perplexity%2Fsonar-pro HTTP/1.1" 401

2026-02-28 09:32:18.924 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55652 - "POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-4.1-fast HTTP/1.1" 401

2026-02-28 09:32:18.928 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55674 - "POST /api/v1/models/model/toggle?id=google%2Fgemini-2.0-flash-001 HTTP/1.1" 401

2026-02-28 09:32:18.931 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55676 - "POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-4-fast HTTP/1.1" 401

2026-02-28 09:32:18.941 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55682 - "POST /api/v1/models/model/toggle?id=google%2Fgemini-2.0-flash-lite-001 HTTP/1.1" 401

Additional Information

Disabling the models one by one works fine. Apparently this makes another HTTP call which is executed fine.

Originally created by @thomase1234 on GitHub (Feb 28, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21959 ### 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 Docker ### Open WebUI Version v0.8.5 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### Browser (if applicable) Latest stable Chrome and stable Firefox on Ubuntu ### 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 On this page http://ubuntu-docker.<redacted>:8282/admin/settings/models I expected to be able to use the "Enable All" and "Disable All" to enable/disable all models at once. ### Actual Behavior Visually, it seems like the models are disabled or enabled because all toggles are flipped. However, if you refresh the page by browsing to another settings page and going back, you'll see that the action was not successful. The only option is to flip each model one by one. ### Steps to Reproduce 1. Start with a clean install of open-webui using docker. 2. I added docker labels to allow traefik to provide reverse proxy functionality. I also tested the bug without going through traefik by exposing a port. No difference. 3. I'm using Keycloak as a openid auth provider. I also tested the bug by directly logging without Keycloak. No difference. 4. I added an openrouter.ai connection + key and disabled all other connections. 5. Now I went to the models list and have the problem. http://ubuntu-docker.<redacted>:8282/admin/settings/models ### Logs & Screenshots ### Browser === HTTP Request === POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-code-fast-1 HTTP/1.1 Host: ubuntu-docker.<redacted>.<redacted>:8282 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0 Accept: application/json Accept-Language: en-US,en;q=0.9 Accept-Encoding: gzip, deflate Referer: http://ubuntu-docker.<redacted>.<redacted>:8282/admin/settings/models Content-Type: application/json authorization: Bearer <redacted> Origin: http://ubuntu-docker.<redacted>.<redacted>:8282 Connection: keep-alive Cookie: _ga_5VPR3EBECJ=GS2.1.s1768992873$o2$g0$t1768992908$j25$l0$h0; _ga=GA1.1.413728482.1765534637; token=<redacted> Priority: u=0 Content-Length: 0 === HTTP Response === HTTP/1.1 401 Unauthorized date: Sat, 28 Feb 2026 09:32:18 GMT server: uvicorn content-length: 57 content-type: application/json x-process-time: 0 access-control-allow-origin: http://ubuntu-docker.<redacted>.<redacted>:8282 access-control-allow-credentials: true vary: Origin ### Docker logs 2026-02-28 09:32:18.909 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55636 - "POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-code-fast-1 HTTP/1.1" 401 2026-02-28 09:32:18.920 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55626 - "POST /api/v1/models/model/toggle?id=perplexity%2Fsonar-pro HTTP/1.1" 401 2026-02-28 09:32:18.924 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55652 - "POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-4.1-fast HTTP/1.1" 401 2026-02-28 09:32:18.928 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55674 - "POST /api/v1/models/model/toggle?id=google%2Fgemini-2.0-flash-001 HTTP/1.1" 401 2026-02-28 09:32:18.931 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55676 - "POST /api/v1/models/model/toggle?id=x-ai%2Fgrok-4-fast HTTP/1.1" 401 2026-02-28 09:32:18.941 | INFO | uvicorn.protocols.http.httptools_impl:send:483 - 192.168.4.130:55682 - "POST /api/v1/models/model/toggle?id=google%2Fgemini-2.0-flash-lite-001 HTTP/1.1" 401 ### Additional Information Disabling the models one by one works fine. Apparently this makes another HTTP call which is executed fine.
GiteaMirror added the bug label 2026-04-25 09:23:07 -05:00
Author
Owner

@tjbck commented on GitHub (Feb 28, 2026):

Unable to reproduce.

<!-- gh-comment-id:3977581872 --> @tjbck commented on GitHub (Feb 28, 2026): Unable to reproduce.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35155