We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e47e0e8 commit 357ed70Copy full SHA for 357ed70
backend/common/core/sqlbot_cache.py
@@ -37,6 +37,8 @@ def custom_key_builder(
37
38
# 支持属性路径格式
39
parts = keyExpression.split('.')
40
+ if not bound_args.arguments.get(parts[0]):
41
+ return f"{base_key}{parts[0]}"
42
value = bound_args.arguments[parts[0]]
43
for part in parts[1:]:
44
value = getattr(value, part)
backend/main.py
@@ -51,6 +51,7 @@ async def lifespan(app: FastAPI):
51
SQLBotLogUtil.info("✅ SQLBot 初始化完成")
52
await sqlbot_xpack.core.clean_xpack_cache()
53
await async_model_info() # 异步加密已有模型的密钥和地址
54
+ await sqlbot_xpack.core.monitor_app(app)
55
yield
56
SQLBotLogUtil.info("SQLBot 应用关闭")
57
0 commit comments