增加字数长度8
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s

This commit is contained in:
Song367 2025-08-08 16:49:54 +08:00
parent fb2305085f
commit b026ee1664

View File

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