update:python部分"动态更新配置"的优化

This commit is contained in:
CGD
2025-04-30 11:55:19 +08:00
parent bb2143d9a0
commit 3ceb3feccf
2 changed files with 11 additions and 2 deletions
@@ -11,6 +11,7 @@ class WebSocketServer:
def __init__(self, config: dict):
self.config = config
self.logger = setup_logging()
self.config_lock = asyncio.Lock()
modules = initialize_modules(
self.logger, self.config, True, True, True, True, True, True
)
@@ -43,6 +44,7 @@ class WebSocketServer:
self._tts,
self._memory,
self._intent,
self # 传入当前 WebSocketServer 实例
)
self.active_connections.add(handler)
try: