[feat] time related syntaxes

This commit is contained in:
kwaroran
2023-08-04 17:20:01 +09:00
parent 729b13eb9e
commit 418ea31664
4 changed files with 92 additions and 5 deletions

View File

@@ -614,7 +614,8 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
db.characters[selectedChar].chats[selectedChat].message.push({
role: 'char',
data: "",
saying: currentChar.chaId
saying: currentChar.chaId,
time: Date.now()
})
while(abortSignal.aborted === false){
const readed = (await reader.read())
@@ -655,7 +656,8 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
db.characters[selectedChar].chats[selectedChat].message.push({
role: msg[0],
data: result,
saying: currentChar.chaId
saying: currentChar.chaId,
time: Date.now()
})
db.characters[selectedChar].reloadKeys += 1
await sayTTS(currentChar, result)