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

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

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