feat: better chat support for thinking

This commit is contained in:
Georg Bauer committed 2026-07-24 18:01:53 +02:00
1 parent ff984bb96a
commit 5ab110ed0b
9 files changed
+463 -68

No files matched your search

@@ -0,0 +1 @@
DROP TABLE messages;
@@ -0,0 +1,10 @@
CREATE TABLE messages (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
session_id INTEGER NOT NULL REFERENCES sessions(id) ON DELETE CASCADE,
user BOOLEAN NOT NULL CHECK (user IN (0, 1)),
reasoning TEXT,
reasoning_complete BOOLEAN NOT NULL DEFAULT 1 CHECK (reasoning_complete IN (0, 1)),
content TEXT NOT NULL
);
CREATE INDEX messages_session_id ON messages(session_id);