mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-23 08:29:21 +08:00
Merge branch 'master' of https://github.com/LLM-Red-Team/kimi-free-api
This commit is contained in:
commit
cbf215d8a8
@ -392,7 +392,7 @@ function messagesPrepare(messages: any[]) {
|
|||||||
return _content + `${message.role || "user"}:${v["text"] || ""}\n`;
|
return _content + `${message.role || "user"}:${v["text"] || ""}\n`;
|
||||||
}, content);
|
}, 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);
|
logger.info("\n对话合并:\n" + content);
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user