fix(conductor): notify on user chat messages

This commit is contained in:
Jiaqing Liang committed 2026-07-22 15:48:13 +08:00
1 parent caa41dd08e
commit 022299a6ab
1 file changed
+3 -1
+3 -1
View File
@@ -558,7 +558,9 @@ def api_get_chat(last: int = 20):
@app.post("/chat")
def api_chat(body: ChatIn):
return add_chat(body.msg, role=body.role)
item = add_chat(body.msg, role=body.role)
if body.role == "user": conductor.notify({"type": "user_message", "msg": body.msg})
return item
@app.post("/approval")
def api_approval(body: ApprovalIn):