소스 검색

Update response_type_detector: update limit for voice response

StrayWarrior 5 일 전
부모
커밋
bd08afb094
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      response_type_detector.py

+ 1 - 1
response_type_detector.py

@@ -75,7 +75,7 @@ class ResponseTypeDetector:
     @staticmethod
     def if_message_suitable_for_voice(message):
         # 使用语音的文字不适合过长
-        if len(message) > 30:
+        if len(message) > 50:
             return False
         # 只有纯文字的消息适合使用语音
         if not ResponseTypeDetector.is_chinese_only(message):