feat: stabilize rag chat conversations and auto title sync
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, ocr, leaudit as _leaudit # noqa: E402
|
||||
from ._settings import app, jwt, db, redis, oss, llm, vlm, embedding, ocr, leaudit as _leaudit # noqa: E402
|
||||
|
||||
|
||||
def _export_settings(instance: object, prefix: str = "") -> dict[str, object]:
|
||||
@@ -48,6 +48,7 @@ _REDIS = _export_settings(redis)
|
||||
_OSS = _export_settings(oss)
|
||||
_LLM = _export_settings(llm)
|
||||
_VLM = _export_settings(vlm)
|
||||
_EMBEDDING = _export_settings(embedding)
|
||||
_OCR = _export_settings(ocr)
|
||||
_LEAUDIT = _export_settings(_leaudit)
|
||||
|
||||
@@ -60,6 +61,7 @@ _ALL.update(_REDIS)
|
||||
_ALL.update(_OSS)
|
||||
_ALL.update(_LLM)
|
||||
_ALL.update(_VLM)
|
||||
_ALL.update(_EMBEDDING)
|
||||
_ALL.update(_OCR)
|
||||
_ALL.update(_LEAUDIT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user