From 448825dcfc2dec150ce25d4ccf6a8cb4490d3b64 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 5 Jun 2025 15:27:14 +0300 Subject: refactor: Replace cache query with user query if results in db. --- gn3/api/llm.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn3/api/llm.py') diff --git a/gn3/api/llm.py b/gn3/api/llm.py index 834cd54..fc54a41 100644 --- a/gn3/api/llm.py +++ b/gn3/api/llm.py @@ -83,6 +83,8 @@ def search(auth_token=None): previous_result = res.fetchone() if previous_result: _, _, _, response = previous_result + response = json.loads(response) + response["query"] = query return response task_id, answer, refs = get_gnqa( -- cgit 1.4.1