Skip to content

Commit 7b19d2d

Browse files
authored
FEAT: Multi-Round discussions
2 parents e5f066e + e1090f5 commit 7b19d2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chat_server/sio/handlers/prompt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ async def new_prompt(sid, data):
5353
cid = data["cid"]
5454
prompt_text = data["prompt_text"]
5555
created_on = int(data.get("created_on") or time())
56+
context = data.get("context", {})
5657
try:
5758
formatted_data = {
5859
"_id": prompt_id,
5960
"cid": cid,
6061
"is_completed": "0",
6162
"data": {"prompt_text": prompt_text},
63+
"context": context,
6264
"created_on": created_on,
6365
}
6466
MongoDocumentsAPI.PROMPTS.add_item(data=formatted_data)

0 commit comments

Comments
 (0)