feat: better chat support for thinking

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

View File

@@ -0,0 +1 @@
DROP TABLE messages;

View File

@@ -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);