Correct the chat search comment.

This commit is contained in:
Murad "Gness Erquint" Beybalaev
2025-03-19 20:27:35 +03:00
committed by GitHub
parent bbdd98a155
commit a3c57fb05f

View File

@ -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();