Add new prompt type 'postEverything'

This commit is contained in:
kwaroran
2024-03-05 01:54:55 +09:00
parent c2352d49fd
commit 18fbaebd46
3 changed files with 16 additions and 4 deletions

View File

@@ -182,9 +182,19 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
let promptTemplate = cloneDeep(db.promptTemplate)
const usingPromptTemplate = !!promptTemplate
if(promptTemplate){
promptTemplate.push({
type: 'postEverything'
})
let hasPostEverything = false
for(const card of promptTemplate){
if(card.type === 'postEverything'){
hasPostEverything = true
break
}
}
if(!hasPostEverything){
promptTemplate.push({
type: 'postEverything'
})
}
}
if(currentChar.utilityBot && (!(usingPromptTemplate && db.proomptSettings.utilOverride))){
promptTemplate = [