Spaces:
Running
on
Zero
Running
on
Zero
dfa
Browse files
chat_history.db
CHANGED
Binary files a/chat_history.db and b/chat_history.db differ
|
|
controllers/gpt_enginner20240619111358
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
Subproject commit e186e516e62a2e15f4f0a02c01a1a3ec6235e4ea
|
controllers/gra_02_openInterpreter/OpenInterpreter.py
CHANGED
@@ -88,7 +88,7 @@ def add_message_to_db(role, message_type, content):
|
|
88 |
conn.commit()
|
89 |
conn.close()
|
90 |
|
91 |
-
def get_recent_messages(limit=
|
92 |
conn = sqlite3.connect(db_name)
|
93 |
cursor = conn.cursor()
|
94 |
cursor.execute("SELECT role, type, content FROM history ORDER BY timestamp DESC LIMIT ?", (limit,))
|
|
|
88 |
conn.commit()
|
89 |
conn.close()
|
90 |
|
91 |
+
def get_recent_messages(limit=5):
|
92 |
conn = sqlite3.connect(db_name)
|
93 |
cursor = conn.cursor()
|
94 |
cursor.execute("SELECT role, type, content FROM history ORDER BY timestamp DESC LIMIT ?", (limit,))
|