mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
Merge pull request #3437 from silentoplayz/patch-1
feat: case insensitive prompt/models selection chat input
This commit is contained in:
commit
b0ed8ded48
2 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
let filteredPromptCommands = [];
|
let filteredPromptCommands = [];
|
||||||
|
|
||||||
$: filteredPromptCommands = $prompts
|
$: filteredPromptCommands = $prompts
|
||||||
.filter((p) => p.command.includes(prompt))
|
.filter((p) => p.command.toLowerCase().includes(prompt.toLowerCase()))
|
||||||
.sort((a, b) => a.title.localeCompare(b.title));
|
.sort((a, b) => a.title.localeCompare(b.title));
|
||||||
|
|
||||||
$: if (prompt) {
|
$: if (prompt) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue