Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

alter message id (#2146)

Kevin Hu4bd6c3145c1b
diff --git a/api/apps/canvas_app.py b/api/apps/canvas_app.py
index 56c6010ccc..f353db6765 100644
--- a/api/apps/canvas_app.py
+++ b/api/apps/canvas_app.py
@@ -91,7 +91,7 @@ def run():
cvs.dsl = json.dumps(cvs.dsl, ensure_ascii=False)
final_ans = {"reference": [], "content": ""}
- message_id = get_uuid()
+ message_id = req.get("message_id", get_uuid())
try:
canvas = Canvas(cvs.dsl, current_user.id)
if "message" in req: