Fix substituting macros in reasoning of a first message

67a4d10b75e58922b519192d64b5a8fdd3dda430

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/script.js+1 -1
@@ -2003,7 +2003,7 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId, san
2003 return '';2003 return '';
2004 }2004 }
20052005
2006 if (Number(messageId) === 0 && !isSystem && !isUser) {2006 if (Number(messageId) === 0 && !isSystem && !isUser && !isReasoning) {
2007 const mesBeforeReplace = mes;2007 const mesBeforeReplace = mes;
2008 const chatMessage = chat[messageId];2008 const chatMessage = chat[messageId];
2009 mes = substituteParams(mes, undefined, ch_name);2009 mes = substituteParams(mes, undefined, ch_name);