首轮不注入注意力prompt

This commit is contained in:
Vinlic 2024-04-08 22:23:54 +08:00
parent 520f26f72f
commit 0b2c8434c9

View File

@ -373,7 +373,7 @@ function messagesPrepare(messages: any[]) {
};
messages.splice(messages.length - 1, 0, newFileMessage);
logger.info("注入提升尾部文件注意力system prompt");
} else {
} else if (messages.length > 2) {
let newTextMessage = {
"content": "关注用户最新的消息",
"role": "system"