sort ChatCompletion presets by name
This commit is contained in:
parent
d3ea5c081d
commit
0b9555234e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue