增加字数长度8
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m53s
This commit is contained in:
parent
fb2305085f
commit
b026ee1664
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user