aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-06 14:00:49 +0300
committerAlexander_Kabui2024-09-06 14:01:34 +0300
commit324f2ebf4106910386c2dceb8130ea32785068f0 (patch)
treec945baec4c07bdb8d5bb9be294167b3dda6e5775 /gn3/api
parentcfeb54b776e95194381d26cff02ea738ad4fd3e0 (diff)
downloadgenenetwork3-324f2ebf4106910386c2dceb8130ea32785068f0.tar.gz
Modify endpoint to use query string.
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/llm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py
index 7e60271..90d5e1f 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -19,7 +19,7 @@ gnqa = Blueprint("gnqa", __name__)
@gnqa.route("/search", methods=["PUT"])
def search():
"""Api endpoint for searching queries in fahamu Api"""
- query = request.json.get("querygnqa", "")
+ query = request.args.get("query", "")
if not query:
return jsonify({"error": "querygnqa is missing in the request"}), 400
fahamu_token = current_app.config.get("FAHAMU_AUTH_TOKEN")