mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-11-01 06:59:21 +08:00
清除合并中无描述md图像
This commit is contained in:
parent
e84aed2c42
commit
a2db68f9c2
@ -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 [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user