From 4f3d9f06d2982edda72d4df027468bf5296dec46 Mon Sep 17 00:00:00 2001 From: Yang Jiahui Date: Tue, 19 Aug 2025 12:29:31 +0800 Subject: [PATCH] [bugfix] can not read the last sentence --- lib/services/chat_sse_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/chat_sse_service.dart b/lib/services/chat_sse_service.dart index 6fdeceb..c95680b 100644 --- a/lib/services/chat_sse_service.dart +++ b/lib/services/chat_sse_service.dart @@ -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; }