[feat] ask removal option
This commit is contained in:
@@ -265,5 +265,6 @@ export const languageEnglish = {
|
|||||||
textScreenRound: "Round Text Screen",
|
textScreenRound: "Round Text Screen",
|
||||||
textScreenBorder: "Text Screen Borders",
|
textScreenBorder: "Text Screen Borders",
|
||||||
ttsReadOnlyQuoted: "Read Only Quoted",
|
ttsReadOnlyQuoted: "Read Only Quoted",
|
||||||
ttsStop: "Stop TTS"
|
ttsStop: "Stop TTS",
|
||||||
|
askRemoval:"Ask Removal"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ export const languageKorean = {
|
|||||||
otherBots:'기타 봇',
|
otherBots:'기타 봇',
|
||||||
user:"유저",
|
user:"유저",
|
||||||
editDisplay: "디스플레이 수정",
|
editDisplay: "디스플레이 수정",
|
||||||
community: "커뮤니티"
|
community: "커뮤니티",
|
||||||
|
askRemoval:"삭제 확인"
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
let msgDisplay = ''
|
let msgDisplay = ''
|
||||||
|
|
||||||
async function rm(){
|
async function rm(){
|
||||||
const rm = await alertConfirm(language.removeChat)
|
const rm = $DataBase.askRemoval ? await alertConfirm(language.removeChat) : true
|
||||||
if(rm){
|
if(rm){
|
||||||
if($DataBase.instantRemove){
|
if($DataBase.instantRemove){
|
||||||
const r = await alertConfirm(language.instantRemoveConfirm)
|
const r = await alertConfirm(language.instantRemoveConfirm)
|
||||||
|
|||||||
@@ -119,6 +119,11 @@
|
|||||||
<span>{language.SwipeRegenerate}</span>
|
<span>{language.SwipeRegenerate}</span>
|
||||||
</div>
|
</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">
|
<div class="flex items-center mt-2">
|
||||||
<Check bind:check={$DataBase.roundIcons}/>
|
<Check bind:check={$DataBase.roundIcons}/>
|
||||||
<span>{language.roundIcons}</span>
|
<span>{language.roundIcons}</span>
|
||||||
|
|||||||
@@ -199,6 +199,9 @@ export function setDatabase(data:Database){
|
|||||||
if(checkNullish(data.supaMemoryType)){
|
if(checkNullish(data.supaMemoryType)){
|
||||||
data.supaMemoryType = "none"
|
data.supaMemoryType = "none"
|
||||||
}
|
}
|
||||||
|
if(checkNullish(data.askRemoval)){
|
||||||
|
data.askRemoval = true
|
||||||
|
}
|
||||||
if(checkNullish(data.sdConfig)){
|
if(checkNullish(data.sdConfig)){
|
||||||
data.sdConfig = {
|
data.sdConfig = {
|
||||||
width:512,
|
width:512,
|
||||||
@@ -353,6 +356,7 @@ export interface Database{
|
|||||||
jailbreak: string
|
jailbreak: string
|
||||||
globalNote:string
|
globalNote:string
|
||||||
temperature: number
|
temperature: number
|
||||||
|
askRemoval:boolean
|
||||||
maxContext: number
|
maxContext: number
|
||||||
maxResponse: number
|
maxResponse: number
|
||||||
frequencyPenalty: number
|
frequencyPenalty: number
|
||||||
|
|||||||
Reference in New Issue
Block a user