From ac07afd0de024c61c8c6d7bbb0dc03ac1f756e75 Mon Sep 17 00:00:00 2001 From: LiGuiyu-AI Date: Wed, 12 Aug 2026 11:54:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9B=B4=E6=8E=A5=E5=9B=9E=E7=AD=94?= =?UTF-8?q?=E9=98=88=E5=80=BC=E6=94=B9=E5=9B=9E60=EF=BC=88=E7=BB=8F?= =?UTF-8?q?=E8=AE=A8=E8=AE=BA=E5=86=B3=E5=AE=9A=EF=BC=8C=E6=92=A4=E9=94=80?= =?UTF-8?q?#165=E4=B8=AD60=E2=86=9230=E7=9A=84=E5=8F=98=E6=9B=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/api/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/chat.js b/functions/api/chat.js index 0d67298..10da221 100644 --- a/functions/api/chat.js +++ b/functions/api/chat.js @@ -62,7 +62,7 @@ export async function onRequestPost(context) { webResults = await searchWeb(env, question, 3); } - if (bestScore >= 30 && qaContext.length > 0) { + if (bestScore >= 60 && qaContext.length > 0) { answer = qaContext[0].answer; } else if (env.LLM_API_KEY && env.LLM_API_URL) { try {