aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-01-08 16:00:16 +0300
committerAlexander_Kabui2024-01-08 16:00:16 +0300
commit142faef667d3517b7221deb4f767f4b0172079a1 (patch)
tree836c8d30fdb841d14dcef1acdda901237431910c
parent262cd686a18358e85b036b3ef8a75a1de043a8bc (diff)
downloadgenenetwork2-142faef667d3517b7221deb4f767f4b0172079a1.tar.gz
revert to use GN3_LOCAL_URL for gn3 api endpoint
-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(