From 958dab1ddd0c2506bce902e140ed4c287a36ad34 Mon Sep 17 00:00:00 2001 From: Wxw-Gu <84499436+Wxw-Gu@users.noreply.github.com> Date: Wed, 14 Oct 2026 11:53:08 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=B0=83=E6=95=B4=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E8=AF=8D=E6=A3=80=E7=B4=A2=E7=94=A8=E4=BE=8B=E7=9A=84=E5=A4=B9?= =?UTF-8?q?=E5=85=B7=E6=8E=AA=E8=BE=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/local-query-api-service.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/local-query-api-service.test.ts b/tests/unit/local-query-api-service.test.ts index 6b5bb86..6c3adc8 100644 --- a/tests/unit/local-query-api-service.test.ts +++ b/tests/unit/local-query-api-service.test.ts @@ -403,7 +403,7 @@ describe('LocalQueryApiService', () => { id: 'm9', type: '普通文本', datetime: '2026/9/9 11:58:00', - content: '刚提到过这个探针词', + content: '刚聊到过这个话题', isSender: false, name: 'BOBO', createTime: Math.floor((NOW - 2 * 60 * 1000) / 1000) @@ -414,7 +414,7 @@ describe('LocalQueryApiService', () => { const result = await service.search({ target: { query: 'BOBO' }, timeRange: { kind: 'all' }, - query: '探针词' + query: '话题' }) // 直读读的是权威源,证据拿得到 —— 这是微信机器人"能拿到东西"的关键。 @@ -423,7 +423,7 @@ describe('LocalQueryApiService', () => { expect(result).toMatchObject({ coverage: { state: 'partial' }, evidenceCount: 1, - evidence: [{ text: '刚提到过这个探针词', sender: 'BOBO' }] + evidence: [{ text: '刚聊到过这个话题', sender: 'BOBO' }] }) // 结论句必须说明"这段已用直读补上",否则模型会一边拿着证据、一边说"暂时无法确认"。 const indexCoverage = ( @@ -442,7 +442,7 @@ describe('LocalQueryApiService', () => { const result = await service.search({ timeRange: { kind: 'all' }, - query: '探针词', + query: '话题', scope: { kind: 'all' } })