Skip to content

Commit

Permalink
add user message console log to handle chat without defences
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarsh-scottlogic committed Feb 15, 2024
1 parent 3a65b9d commit 45d7713
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/controller/chatController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ async function handleChatWithoutDefenceDetection(
chatHistory: ChatMessage[],
defences: Defence[]
): Promise<LevelHandlerResponse> {
console.log(`User message: '${message}'`);

const updatedChatHistory = createNewUserMessages(message).reduce(
pushMessageToHistory,
chatHistory
Expand Down

0 comments on commit 45d7713

Please sign in to comment.