Revert "refactor(chat): 优化错别字生成器逻辑与文档"

This reverts commit ceee3c1fbf.
This commit is contained in:
minecraft1024a
2025-09-06 20:16:49 +08:00
parent ceee3c1fbf
commit e848f89c59
2 changed files with 103 additions and 122 deletions

View File

@@ -239,6 +239,8 @@ def process_human_text(
enable_splitter: 是否启用消息分割器
enable_chinese_typo: 是否启用错字生成器
"""
if isinstance(content, list):
content = "".join(map(str, content))
if not isinstance(content, str):
raise ValueError("content 必须是字符串类型")
try: