Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/common/core/sqlbot_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def custom_key_builder(

# 支持属性路径格式
parts = keyExpression.split('.')
if not bound_args.arguments.get(parts[0]):
return f"{base_key}{parts[0]}"
value = bound_args.arguments[parts[0]]
for part in parts[1:]:
value = getattr(value, part)
Expand Down
1 change: 1 addition & 0 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def lifespan(app: FastAPI):
SQLBotLogUtil.info("✅ SQLBot 初始化完成")
await sqlbot_xpack.core.clean_xpack_cache()
await async_model_info() # 异步加密已有模型的密钥和地址
await sqlbot_xpack.core.monitor_app(app)
yield
SQLBotLogUtil.info("SQLBot 应用关闭")

Expand Down