Remove legacy field
This commit is contained in:
@@ -61,8 +61,8 @@
|
||||
<div class="text-textcolor2">No Format</div>
|
||||
{/if}
|
||||
{#key sorted}
|
||||
{#each $DataBase.promptTemplate as proompt, i}
|
||||
<PromptDataItem bind:promptItem={proompt} onRemove={() => {
|
||||
{#each $DataBase.promptTemplate as prompt, i}
|
||||
<PromptDataItem bind:promptItem={prompt} onRemove={() => {
|
||||
let templates = $DataBase.promptTemplate
|
||||
templates.splice(i, 1)
|
||||
$DataBase.promptTemplate = templates
|
||||
|
||||
@@ -1189,7 +1189,7 @@ export function setPreset(db:Database, newPres: botPreset){
|
||||
}
|
||||
db.top_p = newPres.top_p ?? 1
|
||||
//@ts-ignore //for legacy mistpings
|
||||
db.promptSettings = cloneDeep(newPres.promptSettings) ?? cloneDeep(newPres.proomptSettings) ?? {
|
||||
db.promptSettings = cloneDeep(newPres.promptSettings) ?? {
|
||||
assistantPrefill: '',
|
||||
postEndInnerFormat: '',
|
||||
sendChatAsSystem: false,
|
||||
|
||||
@@ -960,9 +960,6 @@ async function checkNewFormat() {
|
||||
if(db.mainPrompt === oldJailbreak){
|
||||
db.mainPrompt = defaultJailbreak
|
||||
}
|
||||
//@ts-ignore
|
||||
if(db.proomptSettings){ db.promptSettings = db.proomptSettingsdelete; delete db.proomptSettings }
|
||||
|
||||
setDatabase(db)
|
||||
checkCharOrder()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user