feat: 优化KG目录路径获取逻辑,支持备用路径

fix: 修复local_storage设置默认值的逻辑
This commit is contained in:
墨梓柒
2025-07-15 15:45:50 +08:00
parent b4e8d192e5
commit 956232d493
2 changed files with 29 additions and 10 deletions

View File

@@ -65,8 +65,8 @@ def _initialize_knowledge_local_storage():
# 批量设置配置项
initialized_count = 0
for key, default_value in default_configs.items():
if local_storage.get(key) is None:
local_storage.set(key, default_value)
if local_storage[key] is None:
local_storage[key] = default_value
# 根据重要性选择日志级别
if key in important_configs: