Merge branch 'main' into py_test_Memory_powermem

This commit is contained in:
wengzh
2026-02-05 17:45:07 +08:00
committed by GitHub
103 changed files with 21870 additions and 316 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ class ConnectionHandler:
self.read_config_from_api = self.config.get("read_config_from_api", False)
self.websocket = None
self.websocket: websockets.ServerConnection | None = None
self.headers = None
self.device_id = None
self.client_ip = None
@@ -169,7 +169,7 @@ class ConnectionHandler:
# 初始化提示词管理器
self.prompt_manager = PromptManager(self.config, self.logger)
async def handle_connection(self, ws):
async def handle_connection(self, ws: websockets.ServerConnection):
try:
# 获取运行中的事件循环(必须在异步上下文中)
self.loop = asyncio.get_running_loop()