Commit Graph

15 Commits

Author SHA1 Message Date
d981871de8 docs: 终端配置改为电脑、手机、大屏三类,并更新相关称谓 2026-04-23 13:57:42 +08:00
9db4ca88e9 docs: 新增华为云MetaStudio交互数字人完整配置指南 2026-04-23 12:00:35 +08:00
cfeb1b2b1a docs: 完善 README 文档,更新接口说明、常见问题、测试方法 2026-04-22 17:22:59 +08:00
8883f2aaa6 fix: Dify配置改为从环境变量读取,自动拼接/chat-messages 2026-04-22 17:18:02 +08:00
dab4b807d9 fix: 添加健康检查端点GET /,添加CORS中间件解决OPTIONS 405 2026-04-22 17:12:52 +08:00
a310e7a38e fix: Redis连接支持环境变量,修复json.loads错误 2026-04-22 17:10:04 +08:00
d929a15dec update 2026-04-22 16:49:18 +08:00
a1ac67058d Add Redis internal networking and configurable Docker Compose options
- Define `digital-human-net` bridge network for all services to use
  internal DNS
- Map `DH_PORT` environment variable to the Digital Human service host
  port
- Enable Redis container networking by default without exposing host
  ports
- Introduce `docker-compose.redis-expose.yml` for optional Redis host
  exposure
- Add `REDIS_EXPOSE_PORT` environment variable for controlling Redis
  exposure
- Document Redis internal usage and exposure configuration in README
- Add `.gitignore` to exclude Python cache, venv, build artifacts, and
  logs
- Update `.env.example` with new variables and remove Redis host/port
  defaults
- Update README with port customization, Redis documentation, and file
  tree
2026-04-22 16:28:53 +08:00
abd4c3ce77 feat: 添加数字人服务及相关部署文件 2026-04-22 16:26:07 +08:00
69d948de88 refactor: 移除 relay 服务中的 model 参数,Dify /chat-messages 不需要此字段 2026-04-22 16:18:44 +08:00
5722c75536 fix: 中转服务增加 OpenAI->Dify 请求格式转换和响应格式转换 2026-04-22 16:13:39 +08:00
f6f3f641e1 feat: 修正 Dify 端点为 /chat-messages,补全 inputs 字段;新增直连测试页和 relay 测试页 2026-04-22 16:11:27 +08:00
1f3f8a1121 fix: Dockerfile RUN pip 使用 /bin/sh -c 包裹以支持; 回退逻辑 2026-04-22 15:28:21 +08:00
7d07eee2be feat: 添加数字人对接中转服务 Docker Compose 部署方案
- digital-human: FastAPI 中转服务,连接客户端与 Dify LLM 平台
- Redis: 容器内缓存,支持请求体哈希缓存(300s TTL)
- 支持通过 DH_PORT 自定义宿主机映射端口
- Redis 默认不暴露端口,通过 docker-compose.redis-expose.yml 按需开启
- 显式声明 digital-human-net 网络,容器间通过内部 DNS 互通
- 修复 redis.ConnectionError 导入路径(使用 redis.exceptions)
- Dockerfile pip 安装回退机制,避免镜像源不可用时构建失败
- 新增 .gitignore 防止 .env 密钥泄露
2026-04-22 14:24:59 +08:00
0f765281cb init 2026-04-22 14:07:23 +08:00