feat: stabilize rag chat conversations and auto title sync

This commit is contained in:
wren
2026-05-19 15:52:05 +08:00
parent 564f2bebc8
commit afaba4dd99
19 changed files with 1988 additions and 93 deletions
+3 -1
View File
@@ -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)