Merge pull request #3111 from xinnan-tech/py-test-wake

test测试页面唤醒功能
This commit is contained in:
wengzh
2026-05-12 11:00:58 +08:00
committed by GitHub
118 changed files with 2723 additions and 78 deletions
+5 -4
View File
@@ -1044,10 +1044,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:
+1 -1
View File
@@ -93,7 +93,7 @@ class WebSocketServer:
parsed_url = urlparse(request_path)
query_params = parse_qs(parsed_url.query)
if "device-id" not in query_params:
await websocket.send("端口正常,如需测试连接,请使用test_page.html")
await websocket.send("端口正常,如需测试连接,请启动digital-human测试")
await websocket.close()
return
else: