mirror of
https://github.com/open-webui/open-webui
synced 2025-03-24 14:40:51 +00:00
refac
This commit is contained in:
parent
a41a5cc0c8
commit
b9af35be4c
@ -40,9 +40,11 @@
|
||||
let selectedModel = null;
|
||||
|
||||
$: if (_models) {
|
||||
filteredModels = _models.filter(
|
||||
(m) => searchValue === '' || m.name.toLowerCase().includes(searchValue.toLowerCase())
|
||||
);
|
||||
filteredModels = _models
|
||||
.filter((m) => m?.owned_by !== 'arena')
|
||||
.filter(
|
||||
(m) => searchValue === '' || m.name.toLowerCase().includes(searchValue.toLowerCase())
|
||||
);
|
||||
}
|
||||
|
||||
let sortable = null;
|
||||
@ -243,7 +245,7 @@
|
||||
|
||||
onMount(async () => {
|
||||
// Legacy code to sync localModelfiles with models
|
||||
_models = $models.filter((m) => m?.owned_by !== 'arena');
|
||||
_models = $models;
|
||||
localModelfiles = JSON.parse(localStorage.getItem('modelfiles') ?? '[]');
|
||||
|
||||
if (localModelfiles) {
|
||||
|
Loading…
Reference in New Issue
Block a user