Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
b0ed8ded
Unverified
Commit
b0ed8ded
authored
Jun 25, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jun 25, 2024
Browse files
Merge pull request #3437 from silentoplayz/patch-1
feat: case insensitive prompt/models selection chat input
parents
8bdbd2f9
ef619321
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/lib/components/chat/MessageInput/Models.svelte
src/lib/components/chat/MessageInput/Models.svelte
+1
-1
src/lib/components/chat/MessageInput/PromptCommands.svelte
src/lib/components/chat/MessageInput/PromptCommands.svelte
+1
-1
No files found.
src/lib/components/chat/MessageInput/Models.svelte
View file @
b0ed8ded
...
...
@@ -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) {
...
...
src/lib/components/chat/MessageInput/PromptCommands.svelte
View file @
b0ed8ded
...
...
@@ -12,7 +12,7 @@
let filteredPromptCommands = [];
$: filteredPromptCommands = $prompts
.filter((p) => p.command.includes(prompt))
.filter((p) => p.command.
toLowerCase().
includes(prompt
.toLowerCase()
))
.sort((a, b) => a.title.localeCompare(b.title));
$: if (prompt) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment