mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-22 22:09:20 +08:00
修复多轮对话下,无法重复唤起联网检索的问题
This commit is contained in:
parent
cfec318bd0
commit
1a3327cc8d
@ -392,7 +392,7 @@ function messagesPrepare(messages: any[]) {
|
||||
return _content + `${message.role || "user"}:${v["text"] || ""}\n`;
|
||||
}, content);
|
||||
}
|
||||
return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`;
|
||||
return content += `${message.role || 'user'}:${message.role == 'user' ? wrapUrlsToTags(message.content) : message.content}\n`;
|
||||
}, '');
|
||||
logger.info("\n对话合并:\n" + content);
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user