diff options
author | Alexander_Kabui | 2024-09-06 14:00:07 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-09-06 14:00:07 +0300 |
commit | 435a201483f96054e2ecdcbcfc97d79a93867f88 (patch) | |
tree | 91d682f66bdfeec2e12ad286349ddf6d1bfe3905 | |
parent | 9515dd6f835d2037fe86b1122aa1c79a108d8995 (diff) | |
download | genenetwork2-435a201483f96054e2ecdcbcfc97d79a93867f88.tar.gz |
Use query string for Gnqa Search endpoint.
-rw-r--r-- | gn2/wqflask/views.py | 3 |
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}" } |