mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-23 07:29:20 +08:00
fix the position of "\n"
This commit is contained in:
parent
70ea39591b
commit
cda36ed4fc
@ -389,7 +389,7 @@ function messagesPrepare(messages: any[]) {
|
|||||||
return _content + `\n${message.role || "user"}:${v["text"] || ""}`;
|
return _content + `\n${message.role || "user"}:${v["text"] || ""}`;
|
||||||
}, content);
|
}, content);
|
||||||
}
|
}
|
||||||
return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`;
|
return content += `\n${message.role || 'user'}:${wrapUrlsToTags(message.content)}`;
|
||||||
}, '');
|
}, '');
|
||||||
|
|
||||||
logger.info("\n对话合并:" + content);
|
logger.info("\n对话合并:" + content);
|
||||||
|
Loading…
Reference in New Issue
Block a user