fix: #2336 resending message should delete origional messages

This commit is contained in:
Yidadaa
2023-07-10 22:59:12 +08:00
parent dbda27b1d6
commit c00a63e4c3
2 changed files with 46 additions and 8 deletions

View File

@@ -289,7 +289,6 @@ export const useChatStore = create<ChatStore>()(
const botMessage: ChatMessage = createMessage({
role: "assistant",
streaming: true,
id: userMessage.id! + 1,
model: modelConfig.model,
});