fix: 流式流畅度问题,英文符号切分,空格切分

This commit is contained in:
lizhongxiang
2025-03-13 15:30:00 +08:00
parent 91bdc05a38
commit 1dfa619243
3 changed files with 29 additions and 13 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ class ConnectionHandler:
current_text = full_text[processed_chars:] # 从未处理的位置开始
# 查找最后一个有效标点
punctuations = ("", "", "", "", "")
punctuations = ("", "", "", "", "", ".", "?", "!", ";", ":"," ")
last_punct_pos = -1
for punct in punctuations:
pos = current_text.rfind(punct)