Fix image generation prompt and add warning
message for NovelAI users Signed-off-by: hashcoko <hashcoko@gmail.com>
This commit is contained in:
@@ -49,14 +49,7 @@ export const languageEnglish = {
|
||||
loreorder: "If insert Order is higher, it will effect the model more, and it will more lessly cuted when activated lore are many.",
|
||||
bias:"bias is a key-value data which modifies the likelihood of string appearing.\nit can be -100 to 100, higher values will be more likely to appear, and lower values will be more unlikely to appear \nWarning: if the tokenizer is wrong, it not work properly.",
|
||||
emotion: "Emotion Images option shows image depending at character's emotion which is analized by character's response. you must input emotion name as words *(like joy, happy, fear and etc.)* .emotion named **neutral** will be default emotion if it exists. must be more then 3 images to work properly.",
|
||||
imggen: "Image Generation option generates and shows image from external program. the image is generated by image prompt, which is made by analizing current chat. \n\n image generation is analized based on key-value arguments, which are configarable in below."
|
||||
+ "\n\Zn**'always'** key applys always, and dosen't changes. **'negative'** key applys always in negative value for image generation."
|
||||
+ "\n\nobjects with other key's value will change according to the key's name as the chat progresses."
|
||||
+ "\n\nIf a key has a special character in front of its name, it has a special effect."
|
||||
+ "\n- if the key starts with **|**, the key's value will not change."
|
||||
+ "\n- if the key starts with **$**, the key's value will more likely to change."
|
||||
+ "\n\nwhen the image is first generated, you can only change it by modifying 'Current Image Generation Data' in below.",
|
||||
|
||||
imggen: "After analyzing the chat, apply the prompt to {{slot}}.",
|
||||
regexScript: "Regex Script is a custom script that replaces string that matches IN to OUT.\n\nThere four type options."
|
||||
+ "\n\n- **Modify Input** modifys user's input"
|
||||
+ "\n\n- **Modify Output** modifys character's output"
|
||||
@@ -457,4 +450,6 @@ export const languageEnglish = {
|
||||
imgGenPrompt: "Image Generation Prompt",
|
||||
imgGenNegatives: "Image Generation Negative Prompt",
|
||||
imgGenInstructions: "Image Generation Instructions",
|
||||
usePlainFetchWarn: "Please disable this option when using NovelAI, as it can cause CORS errors when using NovelAI."
|
||||
|
||||
}
|
||||
@@ -177,13 +177,7 @@ export const languageKorean = {
|
||||
loreorder: "순서가 높을수록 모델에 더 많은 영향을 미치며, 활성화된 로어가 많을 때 잘리지 않습니다.",
|
||||
bias:"바이어스는 문자열이 나타날 가능성을 수정하는 키-값 데이터로, -100에서 100까지 가능하며 값이 클수록 나타날 가능성이 높고, 값이 작을수록 나타날 가능성이 낮습니다 \n경고: 토큰라이저가 잘못되면 제대로 작동하지 않습니다.",
|
||||
emotion: "감정 이미지 옵션은 캐릭터의 반응으로 분석된 캐릭터의 감정에 따라 이미지를 표시합니다. 감정 이름은 단어 *(예시: joy, happy, fear 등)* 로 입력해야 하며, **neutral** 이라는 이름의 감정이 존재하면 기본 감정이 됩니다. 제대로 작동하려면 이미지가 3개 이상이어야 합니다.",
|
||||
imggen: "이미지 생성 옵션은 외부 프로그램에서 이미지를 생성하고 생성한 이미지를 표시합니다. 이미지는 현재 채팅을 분석하여 만든 이미지 프롬프트에 의해 생성됩니다. \n이미지 생성은 아래에서 구성할 수 있는 키-값 인수를 기반으로 분석됩니다."
|
||||
+ "\n\n**'always'** 키는 언제나 들어가며, 바뀌지 않습니다. **'negative'** 키는 항상 이미지 생성의 네거티브 값으로 들어갑니다."
|
||||
+ "\n\n채팅이 진행됨에 따라 키의 이름에 따라 값이 변경됩니다."
|
||||
+ "\n\n키의 이름에 다음과 같은 문자가 있다면 특수효과가 있습니다."
|
||||
+ "\n- 키의 이름이 **|** 로 시작할 시, 값은 고정됩니다."
|
||||
+ "\n- 키의 이름이 **$** 로 시작할 시, 값은 더 자주 변합니다."
|
||||
+ "\n\n이미지가 처음 생성된 이후부터는 '현재 이미지 생성 데이터'를 수정하여 변경할 수 있습니다.",
|
||||
imggen: "채팅을 분석한 후 프롬프트를 {{slot}}에 적용합니다.",
|
||||
experimental: "실험적 기능입니다. 불안정할 수 있습니다.",
|
||||
regexScript: "정규식 스크립트는 IN에 매칭되는 텍스트를 OUT으로 변경하는 스크립트입니다.\n\n네가지 옵션이 있습니다."
|
||||
+ "\n\n- **입력문 수정** 유저의 입력을 수정합니다"
|
||||
@@ -407,5 +401,6 @@ export const languageKorean = {
|
||||
seed: "시드",
|
||||
charjs: "캐릭터JS",
|
||||
depthPrompt: "깊이 프롬프트",
|
||||
largePortrait: "세로 이미지"
|
||||
largePortrait: "세로 이미지",
|
||||
usePlainFetchWarn: "NovelAI 사용 시 CORS 오류가 발생할 수 있으므로, NovelAI를 사용할 때는 이 옵션을 비활성화해 주세요."
|
||||
}
|
||||
@@ -61,6 +61,9 @@
|
||||
</div>
|
||||
<div class="flex items-center mt-4">
|
||||
<Check bind:check={$DataBase.usePlainFetch} name="Force Plain Fetch"/>
|
||||
{#if $DataBase.usePlainFetch}
|
||||
<span class="text-draculared text-xs ml-2">{language.usePlainFetchWarn}</span>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="flex items-center mt-4">
|
||||
<Check bind:check={$DataBase.autofillRequestUrl} name="Autofill Request URL"/>
|
||||
|
||||
@@ -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