[feat] peer characters

This commit is contained in:
kwaroran
2023-11-22 19:57:35 +09:00
parent 72540db94f
commit b53e369d7b
2 changed files with 11 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ import { additionalInformations } from "./embedding/addinfo";
import { cipherChat, decipherChat } from "./cipherChat";
import { getInlayImage, supportsInlayImage } from "../image";
import { getGenerationModelString } from "./models/modelString";
import { sendPeerChar } from "../sync/multiuser";
export interface OpenAIChat{
role: 'system'|'user'|'assistant'|'function'
@@ -976,6 +977,8 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
}
}
sendPeerChar()
if(req.special){
if(req.special.emotion){
let charemotions = get(CharEmotion)