清除合并中无描述md图像

This commit is contained in:
Vinlic 2024-04-25 14:46:52 +08:00
parent e84aed2c42
commit a2db68f9c2

View File

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