mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 06:18:20 +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 = [];
|
||||
|
||||
$: 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));
|
||||
|
||||
$: if (prompt) {
|
||||
|
Loading…
Reference in New Issue
Block a user