[fix] template fix
This commit is contained in:
@@ -646,6 +646,7 @@ export interface botPreset{
|
||||
promptTemplate?:Proompt[]
|
||||
NAIadventure?: boolean
|
||||
NAIappendName?: boolean
|
||||
localStopStrings?: string[]
|
||||
}
|
||||
|
||||
|
||||
@@ -869,6 +870,7 @@ export function saveCurrentPreset(){
|
||||
promptTemplate: db.promptTemplate ?? null,
|
||||
NAIadventure: db.NAIadventure ?? false,
|
||||
NAIappendName: db.NAIappendName ?? false,
|
||||
localStopStrings: db.localStopStrings
|
||||
}
|
||||
db.botPresets = pres
|
||||
setDatabase(db)
|
||||
@@ -933,6 +935,7 @@ export function setPreset(db:Database, newPres: botPreset){
|
||||
db.NAIsettings.cfg_scale ??= 1
|
||||
db.NAIsettings.mirostat_tau ??= 0
|
||||
db.NAIsettings.mirostat_lr ??= 1
|
||||
db.localStopStrings = newPres.localStopStrings
|
||||
return db
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user