diff options
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/llm.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 9163b76..643d6a8 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -84,14 +84,12 @@ def rating(task_id): ON CONFLICT(task_id) DO UPDATE SET weight=excluded.weight """, (str(user_id), query, answer, weight, task_id)) - return { - "message": "You have successfully rated this query:Thank you!!", - "status": 0, - "db_path": llm_db_path - + + return { + "message": "You have successfully rated this query:Thank you!!" }, 200 except sqlite3.Error as error: - return jsonify({"db_path": llm_db_path, "error": str(error)}), 500 + return jsonify({"error": str(error)}), 500 except Exception as error: raise error |