mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Update Models.svelte
feat: case-insensitive @model-name search
This commit is contained in:
parent
01ad197973
commit
ef619321ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue