Merge pull request #929 from TomasMatarazzo/issue-button-to-clean-chat-history

Issue button to clean chat history
This commit is contained in:
Alex authored and GitHub committed 2024-05-01 10:54:34 +01:00
commit 7c8264e221
8 files changed
+125 -3

No files matched your search

+6
View File
@@ -37,6 +37,12 @@ def delete_conversation():
return {"status": "ok"}
@user.route("/api/delete_all_conversations", methods=["POST"])
def delete_all_conversations():
user_id = "local"
conversations_collection.delete_many({"user":user_id})
return {"status": "ok"}
@user.route("/api/get_conversations", methods=["get"])
def get_conversations():
# provides a list of conversations