[feat] ask removal option
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -239,6 +239,7 @@ export const languageKorean = {
|
||||
otherBots:'기타 봇',
|
||||
user:"유저",
|
||||
editDisplay: "디스플레이 수정",
|
||||
community: "커뮤니티"
|
||||
community: "커뮤니티",
|
||||
askRemoval:"삭제 확인"
|
||||
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user