新增匹配
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 52s

This commit is contained in:
Song367 2025-06-18 20:29:37 +08:00
parent f4b35f4596
commit d52a8064db

View File

@ -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
}