Fix substituting macros in reasoning of a first message

This commit is contained in:
Cohee 2025-01-31 13:23:22 +00:00
parent 56c9b21a28
commit 67a4d10b75

View File

@ -2003,7 +2003,7 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId, san
return '';
}
if (Number(messageId) === 0 && !isSystem && !isUser) {
if (Number(messageId) === 0 && !isSystem && !isUser && !isReasoning) {
const mesBeforeReplace = mes;
const chatMessage = chat[messageId];
mes = substituteParams(mes, undefined, ch_name);