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
e5bf27e7
"vscode:/vscode.git/clone" did not exist on "546d553803ef8546b6aa6a195b2dc2ea7b8d0012"
Commit
e5bf27e7
authored
Aug 02, 2024
by
Timothy J. Baek
Browse files
enh: include desc in fuzzy search
parent
a9a6ed8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/lib/components/chat/ModelSelector/Selector.svelte
src/lib/components/chat/ModelSelector/Selector.svelte
+3
-2
No files found.
src/lib/components/chat/ModelSelector/Selector.svelte
View file @
e5bf27e7
...
@@ -53,12 +53,13 @@
...
@@ -53,12 +53,13 @@
const _item = {
const _item = {
...item,
...item,
modelName: item.model?.name,
modelName: item.model?.name,
tags: item.model?.info?.meta?.tags?.map((tag) => tag.name).join(' ')
tags: item.model?.info?.meta?.tags?.map((tag) => tag.name).join(' '),
desc: item.model?.info?.meta?.description
};
};
return _item;
return _item;
}),
}),
{
{
keys: ['value', 'label', 'tags', 'modelName']
keys: ['value', 'label', 'tags',
'desc',
'modelName']
}
}
);
);
...
...
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