This commit is contained in:
Vinlic 2024-04-17 12:24:11 +08:00
commit cbf215d8a8

View File

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