feat: 移除聊天记录错误返回逻辑,以简化消息处理

This commit is contained in:
zhaoyingbo 2025-01-29 05:22:37 +00:00
parent 945e529fab
commit 45efe9c662

View File

@ -35,7 +35,6 @@ const agent = async (ctx: Context) => {
excludedMessageIds: [loadingMessageId, messageId],
excludeMentions: [appInfo.appName],
})
// 如果没有聊天记录,返回错误信息
logger.debug(`Chat history: ${JSON.stringify(chatHistory)}`)
// 根据Mention拼装原始消息