Add assistant prefill support

This commit is contained in:
kwaroran
2024-04-18 11:44:22 +09:00
parent 9eb6e38611
commit 72c69b3bef

View File

@@ -1331,6 +1331,14 @@ export async function importPreset(){
}
}
if(pre?.assistant_prefill){
pr.promptTemplate.push({
type: 'plain',
type2: 'main',
text: `{{#if {{prefill_supported}}}}${pre?.assistant_prefill}{{/if}}`,
role: 'bot'
})
}
pr.name = "Imported ST Preset"
db.botPresets.push(pr)
setDatabase(db)