[feat] additional description

This commit is contained in:
kwaroran
2023-09-27 14:15:07 +09:00
parent b733238272
commit 69ae060e1e
7 changed files with 60 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ import { clone, cloneDeep } from "lodash";
import { groupOrder } from "./group";
import { runTrigger, type additonalSysPrompt } from "./triggers";
import { HypaProcesser } from "./memory/hypamemory";
import { additionalInformations } from "./embedding/addinfo";
export interface OpenAIChat{
role: 'system'|'user'|'assistant'|'function'
@@ -226,6 +227,9 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
{
let description = risuChatParser((db.promptPreprocess ? db.descriptionPrefix: '') + currentChar.desc, {chara: currentChar})
const additionalInfo = await additionalInformations(currentChar, currentChat)
if(currentChar.personality){
description += risuChatParser("\n\nDescription of {{char}}: " + currentChar.personality, {chara: currentChar})
}