diff --git a/controller/groupAgent/agent.ts b/controller/groupAgent/agent.ts index 61741b7..b84dd60 100644 --- a/controller/groupAgent/agent.ts +++ b/controller/groupAgent/agent.ts @@ -36,11 +36,6 @@ const agent = async (ctx: Context) => { excludeMentions: [appInfo.appName], }) // 如果没有聊天记录,返回错误信息 - if (chatHistory.length === 0) { - logger.info("No chat history found") - await message.updateOrReply(cardGender.genErrorCard("未找到聊天记录")) - return - } logger.debug(`Chat history: ${JSON.stringify(chatHistory)}`) // 根据Mention,拼装原始消息