refactor: 移除 Redis/Rabbit 依赖,Agent Mongo 切至 ai_crm_angent_dev

This commit is contained in:
2026-10-22 00:02:46 +08:00
parent 8307ff95e4
commit 7685f280c6
25 changed files with 80 additions and 486 deletions
-2
View File
@@ -12,7 +12,6 @@ from api.response import fail
from api.routers import chat, memories, sessions
from config.settings import get_settings
from infrastructure.persistence.mongo.client import close_mongo, ensure_indexes, get_db
from infrastructure.persistence.redis.cache import close_redis
@asynccontextmanager
@@ -22,7 +21,6 @@ async def lifespan(_app: FastAPI):
await ensure_indexes(db)
yield
await close_mongo()
await close_redis()
def create_app() -> FastAPI: