[feat] charjs
This commit is contained in:
@@ -95,6 +95,7 @@ export const languageEnglish = {
|
|||||||
+ "\n\n Additionaly, you can use these with additional assets:"
|
+ "\n\n Additionaly, you can use these with additional assets:"
|
||||||
+ "\n - `{{bg::<asset name>}}`: inject the background as asset",
|
+ "\n - `{{bg::<asset name>}}`: inject the background as asset",
|
||||||
additionalText: "The text that would be added to Character Description only when ai thinks its needed, so you can put long texts here. seperate with double newlines.",
|
additionalText: "The text that would be added to Character Description only when ai thinks its needed, so you can put long texts here. seperate with double newlines.",
|
||||||
|
charjs: "A javascript code that would run with character. for example, you can check `getCharacter()` function in the source code.",
|
||||||
},
|
},
|
||||||
setup: {
|
setup: {
|
||||||
chooseProvider: "Choose AI Provider",
|
chooseProvider: "Choose AI Provider",
|
||||||
@@ -438,4 +439,5 @@ export const languageEnglish = {
|
|||||||
defaultPrompt: "Default Prompt",
|
defaultPrompt: "Default Prompt",
|
||||||
additionalText: 'Additional Description',
|
additionalText: 'Additional Description',
|
||||||
seed: "Seed",
|
seed: "Seed",
|
||||||
|
charjs: "CharacterJS"
|
||||||
}
|
}
|
||||||
@@ -515,6 +515,9 @@
|
|||||||
currentChar.data.triggerscript = script
|
currentChar.data.triggerscript = script
|
||||||
}
|
}
|
||||||
}}><PlusIcon /></button>
|
}}><PlusIcon /></button>
|
||||||
|
|
||||||
|
<span class="text-textcolor mt-4">{language.charjs} <Help key="charjs"/></span>
|
||||||
|
<TextAreaInput margin="both" autocomplete="off" bind:value={currentChar.data.virtualscript}></TextAreaInput>
|
||||||
{/if}
|
{/if}
|
||||||
{:else if subMenu === 5}
|
{:else if subMenu === 5}
|
||||||
{#if currentChar.type === 'character'}
|
{#if currentChar.type === 'character'}
|
||||||
|
|||||||
Reference in New Issue
Block a user