[bugfix] can not read the last sentence

This commit is contained in:
2025-08-19 12:29:31 +08:00
parent 486e16cfeb
commit 4f3d9f06d2

View File

@@ -114,7 +114,7 @@ class ChatSseService {
if (line.startsWith('data:')) {
final jsonStr = line.substring(5).trim();
if (jsonStr == '[DONE]' || jsonStr.contains('message_end')) {
await processBuffer(isChinese);
TtsUtil.complete();
onStreamResponse(messageId, responseText, true);
break;
}