specialPrompts at the beginning of the concat array

This commit is contained in:
mic 2024-12-15 22:03:02 +01:00
parent 71aa30f456
commit 3c00e8e3d8

View file

@ -191,7 +191,7 @@ export async function getPrompts(onlyEnabled = false, includeSpecial = false){
const customPrompts = await getCustomPrompts();
// console.log('>>>>>>>>>>>> getPrompts customPrompts: ' + JSON.stringify(customPrompts));
const specialPrompts = await getSpecialPrompts();
let output = _defaultPrompts.concat(customPrompts).concat(specialPrompts);
let output = specialPrompts.concat(_defaultPrompts).concat(customPrompts);
if(!includeSpecial){
output = output.filter(obj => obj.is_special != 1); // we do not want special prompts
}