Add custom chain of thought feature and max thought tag depth setting
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
import { DataBase } from "src/ts/storage/database";
|
||||
import Check from "src/lib/UI/GUI/CheckInput.svelte";
|
||||
import TextInput from "src/lib/UI/GUI/TextInput.svelte";
|
||||
import NumberInput from "src/lib/UI/GUI/NumberInput.svelte";
|
||||
|
||||
let sorted = 0
|
||||
let opened = 0
|
||||
@@ -111,4 +112,9 @@
|
||||
<Check bind:check={$DataBase.proomptSettings.sendChatAsSystem} name={language.sendChatAsSystem} className="mt-4"/>
|
||||
<Check bind:check={$DataBase.proomptSettings.sendName} name={language.sendName} className="mt-4"/>
|
||||
<Check bind:check={$DataBase.proomptSettings.utilOverride} name={language.utilOverride} className="mt-4"/>
|
||||
<Check bind:check={$DataBase.proomptSettings.customChainOfThought} name={language.customChainOfThought} className="mt-4"/>
|
||||
{#if $DataBase.proomptSettings.customChainOfThought}
|
||||
<span class="text-textcolor mt-4">{language.maxThoughtTagDepth}</span>
|
||||
<NumberInput bind:value={$DataBase.proomptSettings.maxThoughtTagDepth}/>
|
||||
{/if}
|
||||
{/if}
|
||||
@@ -25,7 +25,7 @@
|
||||
<span>{language.type}
|
||||
</span>
|
||||
<SelectInput bind:value={proompt.type} on:change={() => {
|
||||
if(proompt.type === 'plain' || proompt.type === 'jailbreak'){
|
||||
if(proompt.type === 'plain' || proompt.type === 'jailbreak' || proompt.type === 'cot'){
|
||||
proompt.text = ""
|
||||
proompt.role = "system"
|
||||
}
|
||||
@@ -42,7 +42,9 @@
|
||||
<OptionInput value="authornote">{language.formating.authorNote}</OptionInput>
|
||||
<OptionInput value="lorebook">{language.formating.lorebook}</OptionInput>
|
||||
<OptionInput value="memory">{language.formating.memory}</OptionInput>
|
||||
|
||||
{#if $DataBase.proomptSettings.customChainOfThought}
|
||||
<OptionInput value="cot">{language.cot}</OptionInput>
|
||||
{/if}
|
||||
</SelectInput>
|
||||
|
||||
{#if proompt.type === 'plain' || proompt.type === 'jailbreak'}
|
||||
|
||||
Reference in New Issue
Block a user