[feat] add name formating

This commit is contained in:
kwaroran
2023-08-24 18:02:02 +09:00
parent 327bc93456
commit cc980a5c6d
2 changed files with 5 additions and 0 deletions

View File

@@ -429,4 +429,5 @@ export const languageEnglish = {
supporterThanks: "Supporter Thanks",
supporterThanksDesc: "Thank you for your support!",
donatorPatreonDesc:"For default, it will not be shown in the list for privacy. if you want to show your nickname, go to RisuAI's patreon page and press the link button.",
useNamePrefix: "Use Name Prefix",
}

View File

@@ -312,6 +312,7 @@
<TextAreaInput fullwidth autocomplete="off" height={"24"} bind:value={$DataBase.ooba.formating.assistantPrefix} />
<span class="text-textcolor">Seperator</span>
<TextAreaInput fullwidth autocomplete="off" height={"24"} bind:value={$DataBase.ooba.formating.seperator} />
</div>
<span class="text-textcolor mt-2">{language.autoSuggest} <Help key="autoSuggest"/></span>
@@ -322,6 +323,9 @@
<TextInput marginBottom={true} bind:value={$DataBase.autoSuggestPrefix} />
<Check bind:check={$DataBase.autoSuggestClean} name={`${language.autoSuggest} suffix removal`}/>
<Check bind:check={$DataBase.ooba.formating.useName} name={language.useNamePrefix}/>
{:else if $DataBase.aiModel.startsWith('novelai')}
<div class="flex flex-col p-3 bg-darkbg mt-4">
<span class="text-textcolor">Starter</span>