Add a "Disable All" toggle switch in the "Settings > Models" section to disable/enable all models at once.
backend/open_webui/models/models.py
Add a new method toggle_all_models to the ModelsTable class to handle disabling/enabling all models at once.
backend/open_webui/routers/models.py
Add a new endpoint /models/toggle_all to handle the "Disable All" toggle request.
Implement the toggle_all_models method in the new endpoint to disable/enable all models at once.
src/lib/apis/models/index.ts
Add a new function toggleAllModels to call the new endpoint for toggling all models.
Update the toggleAllModels function to handle the response from the new endpoint.
src/lib/components/admin/Settings/Models.svelte
Add a "Disable All" toggle switch to the "Settings > Models" section to disable/enable all models at once.
Implement the toggleAllModels function to handle the "Disable All" toggle request.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/11194
**Author:** [@MillionthOdin16](https://github.com/MillionthOdin16)
**Created:** 3/5/2025
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `add-disable-all-toggle`
---
### 📝 Commits (1)
- [`05f0d1f`](https://github.com/open-webui/open-webui/commit/05f0d1f6502e4853dea51483e12c4b7af23757aa) Add Disable All toggle switch in Settings > Models
### 📊 Changes
**4 files changed** (+85 additions, -7 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/models/models.py` (+10 -0)
📝 `backend/open_webui/routers/models.py` (+17 -0)
📝 `src/lib/apis/models/index.ts` (+30 -0)
📝 `src/lib/components/admin/Settings/Models.svelte` (+28 -7)
</details>
### 📄 Description
Fixes #11175
Add a "Disable All" toggle switch in the "Settings > Models" section to disable/enable all models at once.
* **backend/open_webui/models/models.py**
- Add a new method `toggle_all_models` to the `ModelsTable` class to handle disabling/enabling all models at once.
* **backend/open_webui/routers/models.py**
- Add a new endpoint `/models/toggle_all` to handle the "Disable All" toggle request.
- Implement the `toggle_all_models` method in the new endpoint to disable/enable all models at once.
* **src/lib/apis/models/index.ts**
- Add a new function `toggleAllModels` to call the new endpoint for toggling all models.
- Update the `toggleAllModels` function to handle the response from the new endpoint.
* **src/lib/components/admin/Settings/Models.svelte**
- Add a "Disable All" toggle switch to the "Settings > Models" section to disable/enable all models at once.
- Implement the `toggleAllModels` function to handle the "Disable All" toggle request.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11194
Author: @MillionthOdin16
Created: 3/5/2025
Status: ❌ Closed
Base:
main← Head:add-disable-all-toggle📝 Commits (1)
05f0d1fAdd Disable All toggle switch in Settings > Models📊 Changes
4 files changed (+85 additions, -7 deletions)
View changed files
📝
backend/open_webui/models/models.py(+10 -0)📝
backend/open_webui/routers/models.py(+17 -0)📝
src/lib/apis/models/index.ts(+30 -0)📝
src/lib/components/admin/Settings/Models.svelte(+28 -7)📄 Description
Fixes #11175
Add a "Disable All" toggle switch in the "Settings > Models" section to disable/enable all models at once.
backend/open_webui/models/models.py
toggle_all_modelsto theModelsTableclass to handle disabling/enabling all models at once.backend/open_webui/routers/models.py
/models/toggle_allto handle the "Disable All" toggle request.toggle_all_modelsmethod in the new endpoint to disable/enable all models at once.src/lib/apis/models/index.ts
toggleAllModelsto call the new endpoint for toggling all models.toggleAllModelsfunction to handle the response from the new endpoint.src/lib/components/admin/Settings/Models.svelte
toggleAllModelsfunction to handle the "Disable All" toggle request.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.