[feat] ask removal option

This commit is contained in:
kwaroran
2023-05-23 08:46:21 +09:00
parent 51a90f9aa4
commit 8827698b3a
5 changed files with 14 additions and 3 deletions

View File

@@ -265,5 +265,6 @@ export const languageEnglish = {
textScreenRound: "Round Text Screen",
textScreenBorder: "Text Screen Borders",
ttsReadOnlyQuoted: "Read Only Quoted",
ttsStop: "Stop TTS"
ttsStop: "Stop TTS",
askRemoval:"Ask Removal"
}

View File

@@ -239,6 +239,7 @@ export const languageKorean = {
otherBots:'기타 봇',
user:"유저",
editDisplay: "디스플레이 수정",
community: "커뮤니티"
community: "커뮤니티",
askRemoval:"삭제 확인"
}

View File

@@ -24,7 +24,7 @@
let msgDisplay = ''
async function rm(){
const rm = await alertConfirm(language.removeChat)
const rm = $DataBase.askRemoval ? await alertConfirm(language.removeChat) : true
if(rm){
if($DataBase.instantRemove){
const r = await alertConfirm(language.instantRemoveConfirm)

View File

@@ -119,6 +119,11 @@
<span>{language.SwipeRegenerate}</span>
</div>
<div class="flex items-center mt-2">
<Check bind:check={$DataBase.askRemoval}/>
<span>{language.askRemoval}</span>
</div>
<div class="flex items-center mt-2">
<Check bind:check={$DataBase.roundIcons}/>
<span>{language.roundIcons}</span>

View File

@@ -199,6 +199,9 @@ export function setDatabase(data:Database){
if(checkNullish(data.supaMemoryType)){
data.supaMemoryType = "none"
}
if(checkNullish(data.askRemoval)){
data.askRemoval = true
}
if(checkNullish(data.sdConfig)){
data.sdConfig = {
width:512,
@@ -353,6 +356,7 @@ export interface Database{
jailbreak: string
globalNote:string
temperature: number
askRemoval:boolean
maxContext: number
maxResponse: number
frequencyPenalty: number