[PR #11194] [CLOSED] Add Disable All toggle switch in Settings > Models #61537

Closed
opened 2026-05-06 05:04:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11194
Author: @MillionthOdin16
Created: 3/5/2025
Status: Closed

Base: mainHead: add-disable-all-toggle


📝 Commits (1)

  • 05f0d1f Add 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

    • 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>
GiteaMirror added the pull-request label 2026-05-06 05:04:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#61537