diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index 88ddd1f..9c37aaf 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -389,7 +389,7 @@ function messagesPrepare(messages: any[]) { return _content + `\n${message.role || "user"}:${v["text"] || ""}`; }, content); } - return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`; + return content += `\n${message.role || 'user'}:${wrapUrlsToTags(message.content)}`; }, ''); logger.info("\n对话合并:" + content);