修复多轮对话下图像生成幻觉问题

This commit is contained in:
Vinlic 2024-04-25 14:38:00 +08:00
parent 648d23f742
commit 1455261a22

View File

@ -361,7 +361,7 @@ function messagesPrepare(messages: any[], refs: any[] = []) {
return (content += `<|im_start|>${message.role || "user"}\n${
message.content
}<|im_end|>\n`);
}, "");
}, "").replace(/\!\[.+\]\(.+\)/g, "");
logger.info("\n对话合并\n" + content);
return [
{