Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files
chat_history.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1773568
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a829032e4e0b0d7923b4db19eedbae7432affd9303ba16050246f9465878c88
|
3 |
size 1773568
|
controllers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -108,7 +108,7 @@ def add_message_to_db(role, message_type, content):
|
|
108 |
conn.commit()
|
109 |
conn.close()
|
110 |
|
111 |
-
def get_recent_messages(limit=
|
112 |
conn = sqlite3.connect(db_name)
|
113 |
cursor = conn.cursor()
|
114 |
cursor.execute("SELECT role, type, content FROM history ORDER BY timestamp DESC LIMIT ?", (limit,))
|
|
|
108 |
conn.commit()
|
109 |
conn.close()
|
110 |
|
111 |
+
def get_recent_messages(limit=1):
|
112 |
conn = sqlite3.connect(db_name)
|
113 |
cursor = conn.cursor()
|
114 |
cursor.execute("SELECT role, type, content FROM history ORDER BY timestamp DESC LIMIT ?", (limit,))
|