Skip to content

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

Fix: Correct parameter retrieval in thumbup api (#6114)

kuro59892c3c4274be63
diff --git a/api/apps/conversation_app.py b/api/apps/conversation_app.py
index 43ad1dfa5c..57d7afd3b6 100644
--- a/api/apps/conversation_app.py
+++ b/api/apps/conversation_app.py
@@ -78,7 +78,7 @@ def set_conversation():
def get():
conv_id = request.args["conversation_id"]
try:
-
+
e, conv = ConversationService.get_by_id(conv_id)
if not e:
return get_data_error_result(message="Conversation not found!")
@@ -118,7 +118,7 @@ def get():
@manager.route('/getsse/<dialog_id>', methods=['GET']) # type: ignore # noqa: F821
def getsse(dialog_id):
-
+
token = request.headers.get('Authorization').split()
if len(token) != 2:
return get_data_error_result(message='Authorization is not valid!"')
@@ -324,7 +324,7 @@ def thumbup():
e, conv = ConversationService.get_by_id(req["conversation_id"])
if not e:
return get_data_error_result(message="Conversation not found!")
- up_down = req.get("set")
+ up_down = req.get("thumbup")
feedback = req.get("feedback", "")
conv = conv.to_dict()
for i, msg in enumerate(conv["message"]):