From 84ff897b46faa25dded68b202c33422f14f3e1bf Mon Sep 17 00:00:00 2001 From: Sakura-RanChen <1908198662@qq.com> Date: Thu, 24 Jul 2025 09:31:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20LLM=E6=90=BA=E5=B8=A6=E7=A9=BA=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=97=B6=E9=94=99=E8=AF=AF=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,