feat: replace 蚂蚁阿福/阿福 with 泰小虎 in antaf responses
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
21998c0777
commit
51fa106d7d
|
|
@ -65,6 +65,9 @@ class LLMProvider(LLMProviderBase):
|
||||||
text = re.sub(r'\|\s*:?-+:?\s*(\|\s*:?-+:?\s*)+\|?', '', text)
|
text = re.sub(r'\|\s*:?-+:?\s*(\|\s*:?-+:?\s*)+\|?', '', text)
|
||||||
# Markdown标题 ### 文字
|
# Markdown标题 ### 文字
|
||||||
text = re.sub(r'#{1,6}\s*', '', text)
|
text = re.sub(r'#{1,6}\s*', '', text)
|
||||||
|
# 人格替换:蚂蚁阿福 → 泰小虎
|
||||||
|
text = text.replace("蚂蚁阿福", "泰小虎")
|
||||||
|
text = text.replace("阿福", "泰小虎")
|
||||||
# 多余空格和空行
|
# 多余空格和空行
|
||||||
text = re.sub(r' +', ' ', text)
|
text = re.sub(r' +', ' ', text)
|
||||||
text = re.sub(r'\n{2,}', '\n', text)
|
text = re.sub(r'\n{2,}', '\n', text)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue