Skip to content

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

re-generate for conversation (#2165)

Kevin Hu742d0f0ea918
diff --git a/api/apps/conversation_app.py b/api/apps/conversation_app.py
index 6ff490b77e..bc4ec16335 100644
--- a/api/apps/conversation_app.py
+++ b/api/apps/conversation_app.py
@@ -125,7 +125,7 @@ def completion():
e, conv = ConversationService.get_by_id(req["conversation_id"])
if not e:
return get_data_error_result(retmsg="Conversation not found!")
- conv.message.append(deepcopy(msg[-1]))
+ conv.message = deepcopy(req["messages"])
e, dia = DialogService.get_by_id(conv.dialog_id)
if not e:
return get_data_error_result(retmsg="Dialog not found!")