From 142faef667d3517b7221deb4f767f4b0172079a1 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 8 Jan 2024 16:00:16 +0300 Subject: revert to use GN3_LOCAL_URL for gn3 api endpoint --- gn2/wqflask/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 41963324..837677dd 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -262,6 +262,7 @@ def gsearchtable(): return flask.jsonify(current_page) + @app.route("/gnqna", methods=["POST", "GET"]) def gnqna(): if request.method == "POST": @@ -273,7 +274,7 @@ def gnqna(): return render_template("gnqa_answer.html", **resp.json()) return monad_requests.post( - urljoin(current_app.config["GN_SERVER_URL"], + urljoin(GN3_LOCAL_URL, "/api/llm/gnqna"), json=dict(request.form), ).then( -- cgit v1.2.3