mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 22:39:03 +00:00
Update Models.svelte
feat: case-insensitive @model-name search
This commit is contained in:
parent
01ad197973
commit
ef619321ce
@ -21,7 +21,7 @@
|
|||||||
let filteredModels = [];
|
let filteredModels = [];
|
||||||
|
|
||||||
$: filteredModels = $models
|
$: filteredModels = $models
|
||||||
.filter((p) => p.name.includes(prompt.split(' ')?.at(0)?.substring(1) ?? ''))
|
.filter((p) => p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? ''))
|
||||||
.sort((a, b) => a.name.localeCompare(b.name));
|
.sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
$: if (prompt) {
|
$: if (prompt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user