From f605b0b1fc0525e634c1172d60c783366a848969 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 14 Jun 2023 07:08:42 +0100 Subject: [PATCH] Ensure chat_id is added at log time too, refs #6 --- llm/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llm/cli.py b/llm/cli.py index 07ad90a..55a3b57 100644 --- a/llm/cli.py +++ b/llm/cli.py @@ -166,7 +166,8 @@ def log(no_log, provider, system, prompt, response, model, chat_id=None): "response": response, "model": model, "timestamp": str(datetime.datetime.utcnow()), - } + }, + alter=True, )