sort ChatCompletion presets by name

This commit is contained in:
RossAscends 2023-11-24 17:15:39 +09:00
parent d3ea5c081d
commit 0b9555234e
1 changed files with 2 additions and 2 deletions

View File

@ -1697,7 +1697,7 @@ app.post('/getsettings', jsonParser, (request, response) => {
// OpenAI Settings
const { fileContents: openai_settings, fileNames: openai_setting_names }
= readPresetsFromDirectory(DIRECTORIES.openAI_Settings, {
sortFunction: sortByModifiedDate(DIRECTORIES.openAI_Settings), removeFileExtension: true
sortFunction: sortByName(DIRECTORIES.openAI_Settings), removeFileExtension: true
});
// TextGenerationWebUI Settings