From 435a201483f96054e2ecdcbcfc97d79a93867f88 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 6 Sep 2024 14:00:07 +0300 Subject: Use query string for Gnqa Search endpoint. --- gn2/wqflask/views.py | 3 +-- 1 file changed, 1 insertion(+), 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}" } -- cgit v1.2.3