feat: 更改到process.py处理长消息

This commit is contained in:
Rock Chin
2023-03-15 20:33:44 +08:00
parent 651d765ab0
commit 179a372bfe
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ def check_text(text: str) -> list:
"""检查文本是否为长消息,并转换成该使用的消息链组件"""
if not hasattr(config, 'blob_message_threshold'):
return [text]
if len(text) > config.blob_message_threshold:
if not hasattr(config, 'blob_message_strategy'):
raise AttributeError('未定义长消息处理策略')