mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-11-01 20:29:19 +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