From 2d12a33a7cfa50e869a9bda9d8f7bf044129cc1e Mon Sep 17 00:00:00 2001 From: fan Date: Thu, 19 Feb 2026 09:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmemory-lancedb=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E9=80=BB=E8=BE=91=E6=A0=BC=E5=BC=8F=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/memory-lancedb/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/memory-lancedb/index.ts b/extensions/memory-lancedb/index.ts index 357265b88db..63d3524831e 100644 --- a/extensions/memory-lancedb/index.ts +++ b/extensions/memory-lancedb/index.ts @@ -269,7 +269,9 @@ export function shouldCapture(text: string, options?: { maxChars?: number }): bo export function detectCategory(text: string): MemoryCategory { const lower = text.toLowerCase(); - if (/prefer|preferuji|radši|nechci|like|love|hate|want|need|always|never|important/i.test(lower)) { + if ( + /prefer|preferuji|radši|nechci|like|love|hate|want|need|always|never|important/i.test(lower) + ) { return "preference"; } if (/我喜欢|我偏好|我讨厌|我不喜欢|我爱|我想要|我需要/.test(text)) {