From 7621f589b2946bd2dbe6cd6a6c0984afd66eb1f9 Mon Sep 17 00:00:00 2001 From: Han Xiao Date: Thu, 12 Jun 2025 19:24:56 -0700 Subject: [PATCH] fix: adjust reduction ratio threshold and update logging in reducer --- src/tools/reducer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/reducer.ts b/src/tools/reducer.ts index 07628c9..7fd6171 100644 --- a/src/tools/reducer.ts +++ b/src/tools/reducer.ts @@ -89,8 +89,8 @@ export async function reduceAnswers( const reductionRatio = reducedLength / totalLength; - if (reductionRatio < 0.5) { - logWarning(`reduce content length ${reducedLength} is significantly shorter than original content ${totalLength}, return original content instead.`, { + if (reductionRatio < 0.6) { + logWarning(`reducer content length ${reducedLength} is significantly shorter than original content ${totalLength}, return original content instead.`, { originalContent: answers, repairedContent: result.text });