From 4575ae9c2c8d2617599c297aa44985f779abe524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Filip=C3=B3w?= Date: Thu, 11 Apr 2024 16:24:58 +0200 Subject: [PATCH] Added user input logging --- src/chat/post-new-message.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat/post-new-message.ts b/src/chat/post-new-message.ts index 0d3a061..83abeb0 100644 --- a/src/chat/post-new-message.ts +++ b/src/chat/post-new-message.ts @@ -37,6 +37,9 @@ const processMessages = async (messages: ChatCompletionMessageParam[], response: export const newMessage = makePostEndpoint(MessageHistory, async (request, response) => { const message = request.body; + console.log({ + message: message, + }); const identity = request.header(IDENTITY_HEADER); if (!identity) { return response.status(400).send(`Missing ${IDENTITY_HEADER} header.`)