aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/views.py3
1 files changed, 2 insertions, 1 deletions
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(