[fix] current message duplication
This commit is contained in:
@@ -28,6 +28,7 @@ export function exampleMessage(char:character):OpenAIChat[]{
|
|||||||
role: "system",
|
role: "system",
|
||||||
content: '[Start a new chat]'
|
content: '[Start a new chat]'
|
||||||
})
|
})
|
||||||
|
currentMessage = null
|
||||||
}
|
}
|
||||||
else if(lowered.startsWith('{{char}}:') || lowered.startsWith('<bot>:') || lowered.startsWith(`${char.name}:`)){
|
else if(lowered.startsWith('{{char}}:') || lowered.startsWith('<bot>:') || lowered.startsWith(`${char.name}:`)){
|
||||||
add()
|
add()
|
||||||
|
|||||||
Reference in New Issue
Block a user