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

@ -121,7 +121,7 @@ if (fs.existsSync(whitelistPath)) {
} }
const whitelistMode = config.whitelistMode; const whitelistMode = config.whitelistMode;
const autorun = config.autorun && cliArguments.autorun!==false && !cliArguments.ssl; const autorun = config.autorun && cliArguments.autorun !== false && !cliArguments.ssl;
const enableExtensions = config.enableExtensions; const enableExtensions = config.enableExtensions;
const listen = config.listen; const listen = config.listen;
@ -1697,7 +1697,7 @@ app.post('/getsettings', jsonParser, (request, response) => {
// OpenAI Settings // OpenAI Settings
const { fileContents: openai_settings, fileNames: openai_setting_names } const { fileContents: openai_settings, fileNames: openai_setting_names }
= readPresetsFromDirectory(DIRECTORIES.openAI_Settings, { = readPresetsFromDirectory(DIRECTORIES.openAI_Settings, {
sortFunction: sortByModifiedDate(DIRECTORIES.openAI_Settings), removeFileExtension: true sortFunction: sortByName(DIRECTORIES.openAI_Settings), removeFileExtension: true
}); });
// TextGenerationWebUI Settings // TextGenerationWebUI Settings