mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-12-22 22:09:21 +08:00
修复多轮对话下图像生成幻觉问题
This commit is contained in:
parent
648d23f742
commit
1455261a22
@ -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 [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user