aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gn3/api/llm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py
index 5a694a3..acbe623 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -63,7 +63,7 @@ def gnqa():
def rating(task_id):
try:
with (require_oauth.acquire("profile") as token,
- db.connection(LLM_DB_PATH) as conn):
+ db.connection(current_app.config.get(LLM_DB_PATH)) as conn):
results = request.json
user_id, query, answer, weight = (token.user.user_id,