kenken999 commited on
Commit
7619c82
1 Parent(s): 601ed75
routers/gra_02_openInterpreter/OpenInterpreter.py CHANGED
@@ -74,10 +74,11 @@ def initialize_db():
74
  cursor = conn.cursor()
75
  # テーブルを作成するSQL文
76
  create_table_query = """
77
- CREATE TABLE IF NOT EXISTS chat_history (
78
  id INTEGER PRIMARY KEY AUTOINCREMENT,
79
- user TEXT NOT NULL,
80
- message TEXT NOT NULL,
 
81
  timestamp DATETIME DEFAULT CURRENT_TIMESTAMP
82
  )
83
  """
 
74
  cursor = conn.cursor()
75
  # テーブルを作成するSQL文
76
  create_table_query = """
77
+ CREATE TABLE IF NOT EXISTS chat_history (
78
  id INTEGER PRIMARY KEY AUTOINCREMENT,
79
+ role TEXT,
80
+ type TEXT,
81
+ content TEXT,
82
  timestamp DATETIME DEFAULT CURRENT_TIMESTAMP
83
  )
84
  """