mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-12 02:54:03 -05:00
[PR #6199] [CLOSED] fix: hide those models which are marked as hidden by admin in workspace #8636
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/6199
Author: @kevinleeex
Created: 10/15/2024
Status: ❌ Closed
Base:
dev← Head:bugfix/hide-hidden-models📝 Commits (1)
08acff9bugfix: hide those models which are marked as hidden by admin in workspace.📊 Changes
3 files changed (+3 additions, -2 deletions)
View changed files
📝
src/lib/apis/index.ts(+1 -0)📝
src/lib/components/admin/Settings/Users.svelte(+1 -1)📝
src/lib/components/chat/Settings/Interface.svelte(+1 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Add model meta property checking to filter those hidden models, just like the logic being applied to the model selection in the home chat view.

Fixed
Fixed #6197 , to filter those hidden models as it's been done to the home chat view when selecting a model.
Additional Information
Maybe filter them out in the API makes more sense?
Screenshots or Videos
Before:


When mark those models as hidden, they are still showing in
Settings/Interfacefor selecting default model.After:


After filter the hidden models, they are really hidden from the user list.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.