mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-12-23 03:09:20 +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${
|
return (content += `<|im_start|>${message.role || "user"}\n${
|
||||||
message.content
|
message.content
|
||||||
}<|im_end|>\n`);
|
}<|im_end|>\n`);
|
||||||
}, "");
|
}, "").replace(/\!\[.+\]\(.+\)/g, "");
|
||||||
logger.info("\n对话合并:\n" + content);
|
logger.info("\n对话合并:\n" + content);
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user