fix: LLM携带空文本时错误判断

This commit is contained in:
Sakura-RanChen
2025-07-24 09:31:44 +08:00
parent 2370936dfd
commit 84ff897b46
+1 -1
View File
@@ -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,