Fix image generation prompt and add warning
message for NovelAI users Signed-off-by: hashcoko <hashcoko@gmail.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user