Add enabled checking

This commit is contained in:
kwaroran
2024-04-18 11:42:12 +09:00
parent ffe4c5719e
commit 9eb6e38611

View File

@@ -1253,6 +1253,9 @@ export async function importPreset(){
pr.top_p = pre.top_p ?? 1
for(const prompt of pre?.prompt_order?.[0]?.order){
if(!prompt?.enabled){
continue
}
const p = findPrompt(prompt?.identifier ?? '')
if(p){
switch(p.identifier){