From d52a8064db67e3038bb8e7a71a167ca2451a7255 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Wed, 18 Jun 2025 20:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/llm_service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/llm_service.go b/service/llm_service.go index 4464687..b6cc376 100644 --- a/service/llm_service.go +++ b/service/llm_service.go @@ -282,6 +282,9 @@ func (s *LLMService) handleStreamingResponse(req *http.Request, data map[string] if utf8.RuneCountInString(initialSessage) > 10 { new_message = initialSessage initialSessage = "" + } else if utf8.RuneCountInString(initialSessage) <= 10 && strings.HasSuffix(initialSessage, "。") { + new_message = initialSessage + initialSessage = "" } else { continue }