Spaces:
Running
on
Zero
Running
on
Zero
dd
Browse files
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 |
-
|
78 |
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
79 |
-
|
80 |
-
|
|
|
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 |
"""
|