Fix image generation prompt and add warning

message for NovelAI users

Signed-off-by: hashcoko <hashcoko@gmail.com>
This commit is contained in:
hashcoko
2023-11-28 00:50:06 +09:00
parent 7f65a130d8
commit 0b52c04ee7
5 changed files with 11 additions and 17 deletions

View File

@@ -134,7 +134,7 @@ export async function generateAIImage(genPrompt:string, currentChar:character, n
base64img = Buffer.from(await readImage(db.NAIImgConfig.image)).toString('base64');
}
let seed = Math.floor(Math.random() * 100000000000)
let seed = Math.floor(Math.random() * 10000000000)
reqlist = {
body: {
"action": "img2img",

View File

@@ -100,6 +100,7 @@ async function translateMain(text:string, arg:{from:string, to:string, host:stri
let db = get(DataBase)
if(db.translatorType === 'deepl'){
//deepl raise error 525 because of cloudflare
let url = db.deeplOptions.freeApi ? "https://api-free.deepl.com/v2/translate" : "https://api.deepl.com/v2/translate"
const f = await globalFetch(url, {
headers: {