fix the position of "\n"

This commit is contained in:
Yanyutin753 2024-04-05 19:12:47 +08:00
parent 70ea39591b
commit cda36ed4fc

View File

@ -389,7 +389,7 @@ function messagesPrepare(messages: any[]) {
return _content + `\n${message.role || "user"}:${v["text"] || ""}`;
}, content);
}
return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`;
return content += `\n${message.role || 'user'}:${wrapUrlsToTags(message.content)}`;
}, '');
logger.info("\n对话合并" + content);