diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js
index 85c089b1..abb75f19 100644
--- a/public/js/RoomClient.js
+++ b/public/js/RoomClient.js
@@ -3669,7 +3669,7 @@ class RoomClient {
? `${timeAndName}`
: `${timeAndName}
`;
- const message = fromName === 'ChatGPT' ? `
${getMsg}` : getMsg;
+ const message = getFromName === 'ChatGPT' ? `${getMsg}` : this.formatMsg(getMsg);
const newMessageHTML = `