From 18b3d169091b03f6a0035e5289b695c3166a1b71 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 5 Jan 2024 21:50:17 +0300 Subject: fetch gn_server_url from current config --- gn2/wqflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 4728553a..7a5f77d0 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -272,7 +272,7 @@ def gnqna(): return render_template("gnqa_answer.html",**resp.json()) return monad_requests.post( - urljoin(GN_SERVER_URL, + urljoin(current_app.config["GN_SERVER_URL"], "llm/gnqna"), json=dict(request.form), ).then( -- cgit v1.2.3