mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-05 11:07:55 -05:00
Fix(notes): Hide hidden models in notes section
This commit fixes a bug where hidden models were still visible and selectable in the notes section. The following changes were made: - The model dropdown in the chat section of the note editor is now filtered to exclude hidden models. - The default model selection logic in the note editor is now filtered to exclude hidden models.
This commit is contained in:
1 parent
b55a38ee97
commit
c32b407f8a
2 files changed
+3
-2
No files matched your search
@@ -872,7 +872,8 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
|
||||
}
|
||||
|
||||
if (!selectedModelId) {
|
||||
selectedModelId = $models.at(0)?.id || '';
|
||||
selectedModelId =
|
||||
$models.filter((model) => !(model?.info?.meta?.hidden ?? false)).at(0)?.id || '';
|
||||
}
|
||||
|
||||
const dropzoneElement = document.getElementById('note-editor');
|
||||
|
||||
Reference in new issue
Block a user