mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
fix: 补充None值判断
This commit is contained in:
parent
66f4ea0a84
commit
2f5e8c2019
1 changed files with 1 additions and 1 deletions
|
|
@ -746,7 +746,7 @@ class ConnectionHandler:
|
|||
content = response
|
||||
|
||||
# 在llm回复中获取情绪表情,一轮对话只在开头获取一次
|
||||
if emotion_flag and content.strip():
|
||||
if emotion_flag and content is not None and content.strip():
|
||||
asyncio.run_coroutine_threadsafe(
|
||||
textUtils.get_emotion(self, content),
|
||||
self.loop,
|
||||
|
|
|
|||
Loading…
Reference in a new issue