feat: update audit platform workspace
This commit is contained in:
@@ -13,7 +13,7 @@ from ._loader import load_config as _load_config
|
||||
# 优先加载 TOML → os.environ(必须在 Settings 实例化之前)
|
||||
_load_config()
|
||||
|
||||
from ._settings import app, jwt, db, redis, oss, llm, vlm, embedding, ocr, leaudit as _leaudit # noqa: E402
|
||||
from ._settings import app, jwt, db, redis, oss, llm, vlm, embedding, ocr, leaudit as _leaudit, qichacha # noqa: E402
|
||||
|
||||
|
||||
def _export_settings(instance: object, prefix: str = "") -> dict[str, object]:
|
||||
@@ -51,6 +51,7 @@ _VLM = _export_settings(vlm)
|
||||
_EMBEDDING = _export_settings(embedding)
|
||||
_OCR = _export_settings(ocr)
|
||||
_LEAUDIT = _export_settings(_leaudit)
|
||||
_QICHACHA = _export_settings(qichacha)
|
||||
|
||||
# 将所有变量注入当前模块的全局命名空间
|
||||
_ALL = {}
|
||||
@@ -64,6 +65,7 @@ _ALL.update(_VLM)
|
||||
_ALL.update(_EMBEDDING)
|
||||
_ALL.update(_OCR)
|
||||
_ALL.update(_LEAUDIT)
|
||||
_ALL.update(_QICHACHA)
|
||||
|
||||
globals().update(_ALL)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user