From 51109f6dd78ea9d1b40ca97024a70e44e108b769 Mon Sep 17 00:00:00 2001 From: John Nduli Date: Thu, 12 Sep 2024 15:06:33 +0300 Subject: fix: change request for search to get --- 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 f723958a..a63eacb0 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -299,7 +299,7 @@ def gnqna(): if query_type == "xapian": query = clean_xapian_query(query) safe_query = urllib.parse.urlencode({"query": query}) - search_result = requests.put( + search_result = requests.get( urljoin(GN3_LOCAL_URL, f"/api/llm/search?{safe_query}"), headers={"Authorization": f"Bearer {token}"}, ) -- cgit v1.2.3