conversation tile: add menu, add share modal

This commit is contained in:
ManishMadan2882
2024-07-11 21:45:47 +05:30
parent 3357ce8f33
commit d6e59a6a0a
8 changed files with 238 additions and 32 deletions

View File

@@ -498,6 +498,7 @@ def delete_api_key():
#route to share conversation
##isPromptable should be passed through queries
@user.route("/api/share",methods=["POST"])
def share_conversation():
try:
@@ -526,7 +527,7 @@ def share_conversation():
"$ref":"conversations",
"$id":ObjectId(conversation_id)
} ,
"isPromptable":isPromptable,
"isPromptable":isPromptable,
"first_n_queries":current_n_queries,
"user":user
})