mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-11-01 11:19:19 +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${
|
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 [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user