Procházet zdrojové kódy

Update response_type_detector: update limit for voice response

StrayWarrior před 1 měsícem
rodič
revize
bd08afb094
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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):