diff --git a/src/endpoints/chats.js b/src/endpoints/chats.js index 0844311e5..d890c8490 100644 --- a/src/endpoints/chats.js +++ b/src/endpoints/chats.js @@ -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();