about summary refs log tree commit diff
diff options
context:
space:
mode:
-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")