bugfix: discussion creation

This commit is contained in:
Saifeddine ALOUI 2023-04-10 10:28:54 +02:00
parent eead6bec64
commit ed8181aa53

2
app.py
View File

@ -255,7 +255,7 @@ GPT4All:Welcome! I'm here to assist you with anything you need. What can I do fo
if self.current_discussion is None or not self.db.does_last_discussion_have_messages(
self.db_path
):
self.current_discussion = Discussion.create_discussion(self.db_path)
self.current_discussion = DiscussionsDB.create_discussion()
message_id = self.current_discussion.add_message(
"user", request.json["message"]