Skip to content

Commit

Permalink
Added user input logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Filipów committed Apr 11, 2024
1 parent 881f840 commit 4575ae9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/chat/post-new-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`)
Expand Down

0 comments on commit 4575ae9

Please sign in to comment.