mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
Button to clean chat history
This commit is contained in:
@@ -37,6 +37,11 @@ def delete_conversation():
|
||||
|
||||
return {"status": "ok"}
|
||||
|
||||
@user.route("/api/delete_all_conversations", methods=["POST"])
|
||||
def delete_all_conversations():
|
||||
conversations_collection.delete_many({})
|
||||
return {"status": "ok"}
|
||||
|
||||
@user.route("/api/get_conversations", methods=["get"])
|
||||
def get_conversations():
|
||||
# provides a list of conversations
|
||||
|
||||
Reference in New Issue
Block a user