[fix] current message duplication

This commit is contained in:
kwaroran
2023-05-13 18:18:48 +09:00
parent 93f6454a8a
commit 06fd9faefb

View File

@@ -28,6 +28,7 @@ export function exampleMessage(char:character):OpenAIChat[]{
role: "system",
content: '[Start a new chat]'
})
currentMessage = null
}
else if(lowered.startsWith('{{char}}:') || lowered.startsWith('<bot>:') || lowered.startsWith(`${char.name}:`)){
add()