Browse Source

fix: 修改bug

余尚辉 19 hours ago
parent
commit
978bbd3da1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/voip/bot.py

+ 1 - 1
src/core/voip/bot.py

@@ -360,7 +360,7 @@ class MyCall(pj.Call):
 
 
 class ToTextBotAgent:
 class ToTextBotAgent:
     def __init__(self, user_asr_text, call_agent):
     def __init__(self, user_asr_text, call_agent):
-        if not user_asr_text or (call_agent.action and call_agent.action.get("action_code") != "normal"):
+        if not user_asr_text:
             print("ASR文本为空,终止执行。")
             print("ASR文本为空,终止执行。")
             return
             return
         self.call_agent = call_agent
         self.call_agent = call_agent