aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 7a5f77d0..68413aeb 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -262,6 +262,7 @@ def gsearchtable():
+
@app.route("/gnqna",methods =["POST","GET"])
def gnqna():
if request.method == "POST":
@@ -272,8 +273,8 @@ def gnqna():
return render_template("gnqa_answer.html",**resp.json())
return monad_requests.post(
- urljoin(current_app.config["GN_SERVER_URL"],
- "llm/gnqna"),
+ urljoin(GN3_LOCAL_URL,
+ "/api/llm/gnqna"),
json=dict(request.form),
).then(
lambda resp: resp