-- Keeping requests and answers, for a project that asks: how long, and -- what share of its requests. Off for every project until set, like -- conversations: a gateway that keeps no text is the default. ALTER TABLE projects ADD COLUMN request_log_hours INTEGER; ALTER TABLE projects ADD COLUMN request_log_sample REAL; -- The request as the model was sent it — after the guardrails' redaction -- and with any stored conversation spliced in — and the answer as the -- client was sent it. CREATE TABLE request_bodies ( request_id TEXT PRIMARY KEY, project_id TEXT NOT NULL, ts INTEGER NOT NULL, expires_at INTEGER NOT NULL, path TEXT NOT NULL, model TEXT NOT NULL, served_model TEXT NOT NULL, status INTEGER NOT NULL, request TEXT NOT NULL, response TEXT NOT NULL, truncated INTEGER NOT NULL DEFAULT 0 ); CREATE INDEX request_bodies_expiry ON request_bodies (expires_at);