feat:添加配置项以关闭 消息后处理

This commit is contained in:
SengokuCola
2025-06-09 23:27:52 +08:00
parent 968b82cd5b
commit 0e64ed3405
4 changed files with 16 additions and 1 deletions

View File

@@ -324,6 +324,9 @@ def random_remove_punctuation(text: str) -> str:
def process_llm_response(text: str) -> list[str]:
if not global_config.response_post_process.enable_response_post_process:
return [text]
# 先保护颜文字
if global_config.response_splitter.enable_kaomoji_protection:
protected_text, kaomoji_mapping = protect_kaomoji(text)