mirror of
https://github.com/open-webui/open-webui
synced 2025-01-30 22:39:03 +00:00
feat(chat): formatting
This commit is contained in:
parent
09e95b8d3c
commit
c7855b3b9d
@ -65,7 +65,7 @@
|
|||||||
const findByName = (obj: ObjectWithName, prompt: string) => {
|
const findByName = (obj: ObjectWithName, prompt: string) => {
|
||||||
const name = obj.name.toLowerCase();
|
const name = obj.name.toLowerCase();
|
||||||
return name.includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '');
|
return name.includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '');
|
||||||
}
|
};
|
||||||
|
|
||||||
export const selectUp = () => {
|
export const selectUp = () => {
|
||||||
selectedIdx = Math.max(0, selectedIdx - 1);
|
selectedIdx = Math.max(0, selectedIdx - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user