bugfix: messages mixing when new discussion

This commit is contained in:
Saifeddine ALOUI 2023-04-10 17:48:32 +02:00
parent 71f50d9067
commit e5926cafa0

3
app.py
View File

@ -342,6 +342,9 @@ GPT4All:Welcome! I'm here to assist you with anything you need. What can I do fo
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
app.config['executor'].submit(self.prepare_a_new_chatbot)
self.full_message =""
# Return a success response
return json.dumps({"id": self.current_discussion.discussion_id, "time": timestamp})