Ensure chat_id is added at log time too, refs #6

This commit is contained in:
Simon Willison 2023-06-14 07:08:42 +01:00
parent f6c1225f28
commit f605b0b1fc

View file

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