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

@@ -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: {