feat: Add default variables to character settings

This commit is contained in:
kwaroran
2024-05-27 12:09:04 +09:00
parent 608dad465b
commit 6d5be694d0
6 changed files with 43 additions and 4 deletions

View File

@@ -120,4 +120,6 @@
<NumberInput bind:value={$DataBase.promptSettings.maxThoughtTagDepth}/>
<span class="text-textcolor mt-4">{language.customPromptTemplateToggle} <Help key='customPromptTemplateToggle' /></span>
<TextAreaInput bind:value={$DataBase.customPromptTemplateToggle}/>
<span class="text-textcolor mt-4">{language.defaultVariables} <Help key='defaultVariables' /></span>
<TextAreaInput bind:value={$DataBase.templateDefaultVariables}/>
{/if}

View File

@@ -254,6 +254,7 @@
}} />
</div>
{/each}
{#if $DataBase.supaMemoryType !== 'none' || $DataBase.hanuraiEnable}
{#if $DataBase.hanuraiEnable}
@@ -764,6 +765,9 @@
<span class="text-textcolor mt-2">{language.backgroundHTML} <Help key="backgroundHTML" /></span>
<TextAreaInput highlight margin="both" autocomplete="off" bind:value={currentChar.data.backgroundHTML}></TextAreaInput>
<span class="text-textcolor mt-2">{language.defaultVariables} <Help key="defaultVariables" /></span>
<TextAreaInput highlight margin="both" autocomplete="off" bind:value={currentChar.data.defaultVariables}></TextAreaInput>
<span class="text-textcolor">{language.creator}</span>
<TextInput size="sm" autocomplete="off" bind:value={currentChar.data.additionalData.creator} />