aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/llm.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py
index acbe623..1f96b79 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -85,12 +85,11 @@ def rating(task_id):
weight=excluded.weight
""", (str(user_id), query, answer, weight, task_id))
return {
- "message": "success",
- "status": 0,
- "llm_db_path": LLM_DB_PATH
+ "message": "You have successfully rated this query:Thank you!!",
+ "status": 0
}, 200
except sqlite3.Error as error:
- return jsonify({"error": str(error), "user": token.user.user_id,
+ return jsonify({"error": str(error),
"llm_db_path": LLM_DB_PATH}), 500
except Exception as error:
raise error