打印上传消息日志

This commit is contained in:
Yanyutin753 2024-04-02 21:15:36 +08:00
parent 66067b4dd9
commit 1e09d807e6

View File

@ -411,6 +411,8 @@ function messagesPrepare(messages: any[]) {
} }
return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`; return content += `${message.role || 'user'}:${wrapUrlsToTags(message.content)}\n`;
}, ''); }, '');
logger.info("本次上传消息:" + { role: 'user', content });
return [ return [
{ role: 'user', content } { role: 'user', content }
] ]