diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index fba87232..8fe0d6a4 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -746,7 +746,7 @@ class ConnectionHandler: content = response # 在llm回复中获取情绪表情,一轮对话只在开头获取一次 - if emotion_flag: + if emotion_flag and content.strip(): asyncio.run_coroutine_threadsafe( textUtils.get_emotion(self, content), self.loop,