[feat] cot

This commit is contained in:
kwaroran
2023-12-18 07:05:04 +09:00
parent 94aadc53cc
commit 8ac8e2f7ff
5 changed files with 43 additions and 1 deletions

View File

@@ -259,6 +259,13 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
})
}
if(db.chainOfThought){
unformated.postEverything.push({
role: 'system',
content: `<instruction>before responding everything, Think step by step how would you respond inside <Thoughts> xml tag.</instruction>`
})
}
{
let description = risuChatParser((db.promptPreprocess ? db.descriptionPrefix: '') + currentChar.desc, {chara: currentChar})