aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-06 14:00:07 +0300
committerAlexander_Kabui2024-09-06 14:00:07 +0300
commit435a201483f96054e2ecdcbcfc97d79a93867f88 (patch)
tree91d682f66bdfeec2e12ad286349ddf6d1bfe3905 /gn2
parent9515dd6f835d2037fe86b1122aa1c79a108d8995 (diff)
downloadgenenetwork2-435a201483f96054e2ecdcbcfc97d79a93867f88.tar.gz
Use query string for Gnqa Search endpoint.
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 7ce0c96e..bb086a84 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -278,8 +278,7 @@ def gnqna():
lambda err: err, lambda tok: tok["access_token"])
return monad_requests.put(
urljoin(GN3_LOCAL_URL,
- "/api/llm/search"),
- json=dict(request.form),
+ f"/api/llm/search?query={request.form.get('querygnqa')}"),
headers={
"Authorization": f"Bearer {token}"
}