From 36c1dc2136ec384f2209816ee8a79cf47dda785e Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Mon, 2 Dec 2024 08:19:11 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=A4=A7=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E8=B0=83=E7=94=A8=E9=80=BB=E8=BE=91=EF=BC=8C=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=BC=A0=E9=80=92=E5=8F=91=E9=80=81=E8=80=85=E5=90=8D?= =?UTF-8?q?=E5=AD=97=E4=BB=A5=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/groupAgent/agent.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/controller/groupAgent/agent.ts b/controller/groupAgent/agent.ts index 86b424d..7762c87 100644 --- a/controller/groupAgent/agent.ts +++ b/controller/groupAgent/agent.ts @@ -53,16 +53,13 @@ const agent = async (ctx: Context.Data) => { } } - // 获取发送者的名字 - const userName = historyMentions.get(openId || "") ?? "用户" - userInput = `${userName}:${userInput}` - // 调用大模型 try { await updateCard(cardGender.genPendingCard("LLM激情输出中,请稍等...")) const llmRes = await llm.invoke( "groupAgent", { + userName: historyMentions.get(openId || "") ?? "用户", userInput, chatHistory: JSON.stringify(chatHistory), time: new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" }),