Skip to content

Commit

Permalink
清除合并中无描述md图像
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Apr 25, 2024
1 parent e84aed2 commit a2db68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, "");
}, "").replace(/\!\[.*\]\(.+\)/g, "");
logger.info("\n对话合并:\n" + content);
return [
{
Expand Down

0 comments on commit a2db68f

Please sign in to comment.