Sfoglia il codice sorgente

Update agent_service: temporarily disable voice for some staffs

StrayWarrior 1 mese fa
parent
commit
b0b6723db0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      agent_service.py

+ 1 - 1
agent_service.py

@@ -150,7 +150,7 @@ class AgentService:
                 resp = self._get_chat_response(user_id, agent, message_text)
                 if resp:
                     recent_dialogue = agent.dialogue_history[-10:]
-                    if len(recent_dialogue) < 2:
+                    if len(recent_dialogue) < 2 or staff_id not in ('1688855931724582', '1688854492669990'):
                         message_type = MessageType.TEXT
                     else:
                         message_type = self.response_type_detector.detect_type(