[fix] fix prompttemplate pushing
This commit is contained in:
@@ -170,10 +170,11 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
|
|||||||
}
|
}
|
||||||
|
|
||||||
const promptTemplate = cloneDeep(db.promptTemplate)
|
const promptTemplate = cloneDeep(db.promptTemplate)
|
||||||
|
if(promptTemplate){
|
||||||
db.promptTemplate.push({
|
promptTemplate.push({
|
||||||
type: 'postEverything'
|
type: 'postEverything'
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if((!currentChar.utilityBot) && (!promptTemplate)){
|
if((!currentChar.utilityBot) && (!promptTemplate)){
|
||||||
const mainp = currentChar.systemPrompt?.replaceAll('{{original}}', db.mainPrompt) || db.mainPrompt
|
const mainp = currentChar.systemPrompt?.replaceAll('{{original}}', db.mainPrompt) || db.mainPrompt
|
||||||
|
|||||||
Reference in New Issue
Block a user