From 5acb80117c002b72dc591e0ce0c3083a2695bf0a Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 12 Sep 2024 12:42:34 +0300 Subject: refactor: Use get for all request to gn3 search endpoint. --- gn2/wqflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn2') diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 7a3a6463..f723958a 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -317,7 +317,7 @@ def gnqna(): return render_template("gnqa.html") if request.method == "POST": safe_query = urllib.parse.urlencode({"query": request.form.get("querygnqa")}) - return monad_requests.put( + return monad_requests.get( urljoin(GN3_LOCAL_URL, f"/api/llm/search?{safe_query}"), headers={"Authorization": f"Bearer {token}"}, ).either(_error_, _success_) -- cgit v1.2.3