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)