From bba886e2752dfc991571870dc0e9d9ad7e1565e7 Mon Sep 17 00:00:00 2001 From: roitium Date: Wed, 24 Jul 2024 10:21:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=81=A2=E5=A4=8D=E5=8E=9Fthreshold?= =?UTF-8?q?=E6=95=B0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/bot/memory/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/bot/memory/index.ts b/src/services/bot/memory/index.ts index c3538fe..6307783 100644 --- a/src/services/bot/memory/index.ts +++ b/src/services/bot/memory/index.ts @@ -100,7 +100,7 @@ export class MemoryManager { threshold?: number; } ) { - const { threshold = 1 } = options; + const { threshold = 10 } = options; const lastMemory = firstOf(await this.getShortTermMemories({ take: 1 })); const newMemories: (Memory & { msg: Message & {