Implement persistent conversational AI chat
This commit is contained in:
1 parent
fb5cae2131
commit
ac611e3f7f
31 files changed
+4035
-43
No files matched your search
@@ -199,9 +199,7 @@ CREATE TABLE IF NOT EXISTS chat_messages (
|
||||
content TEXT,
|
||||
tool_call_id TEXT,
|
||||
tool_calls TEXT,
|
||||
created_at INTEGER NOT NULL,
|
||||
cache_read_tokens INTEGER,
|
||||
cache_write_tokens INTEGER
|
||||
created_at INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS ai_providers (
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE chat_messages DROP COLUMN cache_write_tokens;
|
||||
ALTER TABLE chat_messages DROP COLUMN cache_read_tokens;
|
||||
@@ -0,0 +1,3 @@
|
||||
-- Your SQL goes here
|
||||
ALTER TABLE chat_messages ADD COLUMN cache_read_tokens INTEGER;
|
||||
ALTER TABLE chat_messages ADD COLUMN cache_write_tokens INTEGER;
|
||||
Reference in new issue
Block a user