[fix] template fix
This commit is contained in:
@@ -370,7 +370,7 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
|
|||||||
"userPrefix": "",
|
"userPrefix": "",
|
||||||
"assistantPrefix": "",
|
"assistantPrefix": "",
|
||||||
"seperator": "\n",
|
"seperator": "\n",
|
||||||
"useName": false
|
"useName": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ainconfig": {
|
"ainconfig": {
|
||||||
@@ -418,7 +418,7 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
|
|||||||
"type2": "normal"
|
"type2": "normal"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "lorebook",
|
"type": "lorebook"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "chat",
|
"type": "chat",
|
||||||
@@ -427,11 +427,11 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "persona",
|
"type": "persona",
|
||||||
"innerFormat": "[{{slot}}]"
|
"innerFormat": "{{user}} Description: [{{slot}}]"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "description",
|
"type": "description",
|
||||||
"innerFormat": "[{{slot}}]"
|
"innerFormat": "{{char}} Description:[{{slot}}]"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "chat",
|
"type": "chat",
|
||||||
@@ -441,7 +441,7 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
|
|||||||
{
|
{
|
||||||
"type": "plain",
|
"type": "plain",
|
||||||
"text": "### Instruction:",
|
"text": "### Instruction:",
|
||||||
"role": "bot",
|
"role": "system",
|
||||||
"type2": "normal"
|
"type2": "normal"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -452,7 +452,7 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
|
|||||||
{
|
{
|
||||||
"type": "plain",
|
"type": "plain",
|
||||||
"text": "",
|
"text": "",
|
||||||
"role": "bot",
|
"role": "system",
|
||||||
"type2": "globalNote"
|
"type2": "globalNote"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -463,7 +463,12 @@ export const prebuiltPresets:{OAI:botPreset,ooba:botPreset,NAI:botPreset,oobaRp:
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"NAIadventure": false,
|
"NAIadventure": false,
|
||||||
"NAIappendName": true
|
"NAIappendName": true,
|
||||||
|
"localStopStrings": [
|
||||||
|
"\\n{{user}}:",
|
||||||
|
"\\n### Instruction:",
|
||||||
|
"\\n### Response"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -646,6 +646,7 @@ export interface botPreset{
|
|||||||
promptTemplate?:Proompt[]
|
promptTemplate?:Proompt[]
|
||||||
NAIadventure?: boolean
|
NAIadventure?: boolean
|
||||||
NAIappendName?: boolean
|
NAIappendName?: boolean
|
||||||
|
localStopStrings?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -869,6 +870,7 @@ export function saveCurrentPreset(){
|
|||||||
promptTemplate: db.promptTemplate ?? null,
|
promptTemplate: db.promptTemplate ?? null,
|
||||||
NAIadventure: db.NAIadventure ?? false,
|
NAIadventure: db.NAIadventure ?? false,
|
||||||
NAIappendName: db.NAIappendName ?? false,
|
NAIappendName: db.NAIappendName ?? false,
|
||||||
|
localStopStrings: db.localStopStrings
|
||||||
}
|
}
|
||||||
db.botPresets = pres
|
db.botPresets = pres
|
||||||
setDatabase(db)
|
setDatabase(db)
|
||||||
@@ -933,6 +935,7 @@ export function setPreset(db:Database, newPres: botPreset){
|
|||||||
db.NAIsettings.cfg_scale ??= 1
|
db.NAIsettings.cfg_scale ??= 1
|
||||||
db.NAIsettings.mirostat_tau ??= 0
|
db.NAIsettings.mirostat_tau ??= 0
|
||||||
db.NAIsettings.mirostat_lr ??= 1
|
db.NAIsettings.mirostat_lr ??= 1
|
||||||
|
db.localStopStrings = newPres.localStopStrings
|
||||||
return db
|
return db
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user