diff --git a/src/llm_stream.js b/src/llm_stream.js index 00226ff..71de939 100644 --- a/src/llm_stream.js +++ b/src/llm_stream.js @@ -87,7 +87,7 @@ async function requestLLMStream({ apiKey, model, messages, onSegment }) { } // 如果累积文本长度大于5个字,处理它 - if (accumulatedText.length > 6 && onSegment) { + if (accumulatedText.length > 8 && onSegment) { console.log('检测到完整段落:', accumulatedText); await onSegment(accumulatedText, false); hasProcessed = true;