From 3306f3a69fa84cc395fb8b6bf1586a583c0b8f54 Mon Sep 17 00:00:00 2001 From: Simon Willison <swillison@gmail.com> Date: Tue, 19 Nov 2024 18:31:56 -0800 Subject: [PATCH] Update schema with cog, refs #610 --- docs/logging.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/logging.md b/docs/logging.md index 63722e01..56c0379d 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -159,7 +159,10 @@ CREATE TABLE [responses] ( [response_json] TEXT, [conversation_id] TEXT REFERENCES [conversations]([id]), [duration_ms] INTEGER, - [datetime_utc] TEXT + [datetime_utc] TEXT, + [input_tokens] INTEGER, + [output_tokens] INTEGER, + [token_details] TEXT ); CREATE VIRTUAL TABLE [responses_fts] USING FTS5 ( [prompt],