aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-03 11:08:31 +0300
committerAlexander_Kabui2024-09-03 11:08:31 +0300
commitc34d75a29b7d144030542b9de4fd0e0d614303a9 (patch)
treec93b2a4ba834100a3079d3f8cd4eb59812c29e12 /gn3/api
parentc16c54759cfd493250424ee3f565862e5d6009b3 (diff)
downloadgenenetwork3-c34d75a29b7d144030542b9de4fd0e0d614303a9.tar.gz
Use Jsonb for storing results.
Diffstat (limited to 'gn3/api')
-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 8d17bc2..9ee4a79 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -40,7 +40,7 @@ def search():
history(user_id TEXT NOT NULL,
task_id TEXT NOT NULL,
query TEXT NOT NULL,
- results TEXT,
+ results JSONB,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(task_id)) WITHOUT ROWID""")
cursor.execute(