We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5f066e + e1090f5 commit 7b19d2dCopy full SHA for 7b19d2d
chat_server/sio/handlers/prompt.py
@@ -53,12 +53,14 @@ async def new_prompt(sid, data):
53
cid = data["cid"]
54
prompt_text = data["prompt_text"]
55
created_on = int(data.get("created_on") or time())
56
+ context = data.get("context", {})
57
try:
58
formatted_data = {
59
"_id": prompt_id,
60
"cid": cid,
61
"is_completed": "0",
62
"data": {"prompt_text": prompt_text},
63
+ "context": context,
64
"created_on": created_on,
65
}
66
MongoDocumentsAPI.PROMPTS.add_item(data=formatted_data)
0 commit comments