From ee4cbc7e960880c22cbcc0f4d0f6660ad4069408 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 13 Apr 2025 13:19:43 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=E8=87=AA=E5=8A=A8=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/chat/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/chat/utils.py b/src/plugins/chat/utils.py index 1e42fc2b7..52ac69473 100644 --- a/src/plugins/chat/utils.py +++ b/src/plugins/chat/utils.py @@ -326,7 +326,7 @@ def random_remove_punctuation(text: str) -> str: def process_llm_response(text: str) -> List[str]: # processed_response = process_text_with_typos(content) # 对西文字符段落的回复长度设置为汉字字符的两倍 - max_length = global_config.response_max_length *3 + max_length = global_config.response_max_length * 3 max_sentence_num = global_config.response_max_sentence_num if len(text) > max_length and not is_western_paragraph(text): logger.warning(f"回复过长 ({len(text)} 字符),返回默认回复")