aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-12 12:42:34 +0300
committerAlexander_Kabui2024-09-12 12:42:34 +0300
commit5acb80117c002b72dc591e0ce0c3083a2695bf0a (patch)
tree432ce84d29784bb59265e8a861ad730d9a10f7d9 /gn2/wqflask
parentfd2769e7e187304f881be72b8e5a6ef684455433 (diff)
downloadgenenetwork2-5acb80117c002b72dc591e0ce0c3083a2695bf0a.tar.gz
refactor: Use get for all request to gn3 search endpoint.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
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_)