From 51fa106d7d49fafd74d634568968960b7d80c885 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 7 Apr 2026 02:18:28 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20replace=20=E8=9A=82=E8=9A=81=E9=98=BF?= =?UTF-8?q?=E7=A6=8F/=E9=98=BF=E7=A6=8F=20with=20=E6=B3=B0=E5=B0=8F?= =?UTF-8?q?=E8=99=8E=20in=20antaf=20responses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- modules/antaf/antaf_llm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/antaf/antaf_llm.py b/modules/antaf/antaf_llm.py index c4e606e..7627fdf 100644 --- a/modules/antaf/antaf_llm.py +++ b/modules/antaf/antaf_llm.py @@ -65,6 +65,9 @@ class LLMProvider(LLMProviderBase): text = re.sub(r'\|\s*:?-+:?\s*(\|\s*:?-+:?\s*)+\|?', '', text) # Markdown标题 ### 文字 text = re.sub(r'#{1,6}\s*', '', text) + # 人格替换:蚂蚁阿福 → 泰小虎 + text = text.replace("蚂蚁阿福", "泰小虎") + text = text.replace("阿福", "泰小虎") # 多余空格和空行 text = re.sub(r' +', ' ', text) text = re.sub(r'\n{2,}', '\n', text)