[fix] bugs

This commit is contained in:
kwaroran
2023-11-27 22:31:13 +09:00
parent e98a8ebf67
commit 4bbe029c1f
2 changed files with 9 additions and 1 deletions

View File

@@ -116,6 +116,14 @@ export async function generateAIImage(genPrompt:string, currentChar:character, n
let reqlist= {}
if(db.NAII2I){
genPrompt = genPrompt
.replaceAll('\\(', "♧")
.replaceAll('\\)', "♤")
.replaceAll('(','{')
.replaceAll(')','}')
.replaceAll('♧','(')
.replaceAll('♤',')')
let base64img = ''
if(db.NAIImgConfig.image === ''){
const charimg = currentChar.image;