refactor(api): TOML 配置 SSOT、统一错误契约、Auth/事务加固与可观测性 (#33)
配置 SSOT(TOML + .env) 统一错误契约 Auth 与事务边界 Redis / Celery 可靠性:业务 Redis(DB/0)与 Celery broker/backend(DB/1)显式拆分;连接池、sync client 可观测性(OpenTelemetry + LGTM)
This commit is contained in:
13
api/app/core/runtime_constants.py
Normal file
13
api/app/core/runtime_constants.py
Normal file
@@ -0,0 +1,13 @@
|
||||
"""运行时默认值 — 值来自 config/*.toml(SSOT)。"""
|
||||
|
||||
from app.core.app_config import app_config
|
||||
|
||||
llm_defaults = app_config.llm
|
||||
asr_defaults = app_config.asr
|
||||
tts_defaults = app_config.tts
|
||||
celery_defaults = app_config.celery
|
||||
redis_defaults = app_config.redis
|
||||
alembic_defaults = app_config.alembic
|
||||
agent_log_defaults = app_config.agent_log
|
||||
otel_defaults = app_config.otel
|
||||
misc_defaults = app_config.misc
|
||||
Reference in New Issue
Block a user