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