kenken999 commited on
Commit
e729652
·
1 Parent(s): a01a027
chat_history.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:df57a2e3967aca434bc76f827ee39c743a36b5ec4a0975004ea0ef7baff80af3
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=5):
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,))