diff options
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/llm.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 9c277c1..3dd75fa 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -30,7 +30,7 @@ def gnqa(): }) except Exception as error: - return jsonify({"query": query, "error": "Internal server error"}), 500 + return jsonify({"query": query, "error": f"Request failed-{str(error)}"}), 500 @GnQNA.route("/rating/<task_id>/<doc_id>/<int:rating>", methods=["POST"]) @@ -39,7 +39,6 @@ def rating(task_id, doc_id, rating): results = rate_document(task_id, doc_id, rating, current_app.config.get("FAHAMU_AUTH_TOKEN")) - return jsonify({ **results, "doc_id": doc_id, |