mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 17:13:54 +08:00
fix: LLM携带空文本时错误判断
This commit is contained in:
@@ -746,7 +746,7 @@ class ConnectionHandler:
|
|||||||
content = response
|
content = response
|
||||||
|
|
||||||
# 在llm回复中获取情绪表情,一轮对话只在开头获取一次
|
# 在llm回复中获取情绪表情,一轮对话只在开头获取一次
|
||||||
if emotion_flag:
|
if emotion_flag and content.strip():
|
||||||
asyncio.run_coroutine_threadsafe(
|
asyncio.run_coroutine_threadsafe(
|
||||||
textUtils.get_emotion(self, content),
|
textUtils.get_emotion(self, content),
|
||||||
self.loop,
|
self.loop,
|
||||||
|
|||||||
Reference in New Issue
Block a user