Commit Graph

2 Commits

Author SHA1 Message Date
chiguyong 6b90fb5cd6 refactor: unify Redis connection pool across all modules
- Create app/core/redis.py with global get_redis() singleton
- Replace 4 independent Redis connections:
  - cache.py: use get_redis() instead of own aioredis.from_url
  - dispatcher.py: use get_redis() instead of own connection
  - health_checker.py: use get_redis() instead of per-check connection
  - rate_limit.py: RedisRateLimitBackend uses get_redis() instead of own connection
- Replace main.py readiness endpoint to use get_redis()
- Add close_redis() in FastAPI lifespan shutdown
- Remove unused aioredis imports from health_checker.py and main.py
2026-06-04 14:21:14 +08:00
chiguyong eac12093d6 feat: 修复前后端API路径不匹配,对接真实数据与百炼LLM
- 修复知识库API路径(knowledge-bases -> knowledge/bases)
- 修复analytics top-content -> top路径
- 修复lifecycle stats路径
- 配置百炼Coding Plan API(qwen3-coder-plus)
- 后端所有API对接真实数据库
- 前端所有页面对接真实后端API
- 创建管理员测试账号(admin@fischer.com)
- 修复CORS配置支持localhost:3001
- 修复UUID/String类型转换问题
2026-05-23 14:45:51 +08:00