mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Correct the chat search comment.
This commit is contained in:
committed by
GitHub
parent
bbdd98a155
commit
a3c57fb05f
@ -783,7 +783,7 @@ router.post('/search', validateAvatarUrlMiddleware, function (request, response)
|
||||
continue;
|
||||
}
|
||||
|
||||
// Search through chats
|
||||
// Search through title and messages of the chat
|
||||
const fragments = query.trim().toLowerCase().split(/\s+/).filter(x => x);
|
||||
const text = [chatFile.path.split(/[\\\/]/).pop().replace(/.jsonl$/, ''),
|
||||
...messages.map(message => message?.mes)].join("\n").toLowerCase();
|
||||
|
Reference in New Issue
Block a user