mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add just a chat fields list from server
This commit is contained in:
@ -956,6 +956,10 @@ router.post('/chats', jsonParser, async function (request, response) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (request.body.simple) {
|
||||
return response.send(jsonFiles.map(file => ({ file_name: file })));
|
||||
}
|
||||
|
||||
const jsonFilesPromise = jsonFiles.map((file) => {
|
||||
return new Promise(async (res) => {
|
||||
const pathToFile = path.join(request.user.directories.chats, characterDirectory, file);
|
||||
|
Reference in New Issue
Block a user