Przeglądaj źródła

Update dialogue_manager: human intervention detection update

StrayWarrior 2 dni temu
rodzic
commit
0e62dc51c2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      dialogue_manager.py

+ 1 - 1
dialogue_manager.py

@@ -402,7 +402,7 @@ class DialogueManager:
         :param llm_response:
         :return:
         """
-        if llm_response == '<人工介入>':
+        if '<人工介入>' in llm_response:
             logger.warning(f'staff[{self.staff_id}], user[{self.user_id}]: human intervention triggered')
             self.do_state_change(DialogueState.HUMAN_INTERVENTION)
             self._send_human_intervention_alert()