Update main.py

pull/1222/head
CNMr.Sunshine 2025-08-30 17:29:20 +08:00 committed by GitHub
parent 4bee6002ff
commit ed33873020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ logger = get_logger("main")
class MainSystem:
def __init__(self):
# 根据配置条件性地初始化记忆系统
if global_config.memory.enable_memory:
if global_config.memory.enable_memory and hippocampus_manager is not None:
self.hippocampus_manager = hippocampus_manager
else:
self.hippocampus_manager = None
@ -176,4 +176,4 @@ async def main():
if __name__ == "__main__":
asyncio.run(main())