mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #11194] [CLOSED] Add Disable All toggle switch in Settings > Models #45729
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?
📋 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.