Refactor preset handling and improve database snapshot logic

This commit is contained in:
Kwaroran
2024-12-26 03:18:00 +09:00
parent d7f376b8db
commit c6cc258a50
4 changed files with 12 additions and 11 deletions

View File

@@ -455,6 +455,10 @@ export async function generateAIImage(genPrompt:string, currentChar:character, n
input = input.replaceAll('{{risu_prompt}}', genPrompt)
input = input.replaceAll('{{risu_neg}}', neg)
}
if(inputKeys[j] === 'seed' && typeof input === 'number'){
input = Math.floor(Math.random() * 1000000000)
}
node.inputs[inputKeys[j]] = input
}