update:测试页面支持关闭情绪表情功能

This commit is contained in:
3030332422
2026-04-21 11:15:31 +08:00
parent dc2094ea8b
commit 96f0412f94
4 changed files with 29 additions and 6 deletions
+5 -4
View File
@@ -1002,10 +1002,11 @@ class ConnectionHandler:
# 在llm回复中获取情绪表情,一轮对话只在开头获取一次
if emotion_flag and content is not None and content.strip():
asyncio.run_coroutine_threadsafe(
textUtils.get_emotion(self, content),
self.loop,
)
if (self.features or {}).get("emoji", True):
asyncio.run_coroutine_threadsafe(
textUtils.get_emotion(self, content),
self.loop,
)
emotion_flag = False
if content is not None and len(content) > 0: