[任务5] 最终方案: LobeChat + LiteLLM(简化网关,保留稳定前端)

技术栈:
- 前端:LobeChat(已稳定运行,模型列表仅显示 auto-vision/auto-text)
- 网关:LiteLLM Proxy(纯 YAML 配置驱动,5 个渠道定义 + 自动优先级 + Failover)
- 存储:无(LiteLLM 无状态,配置即代码)

简化点:
- 删除 MySQL(LiteLLM 无需持久化配置数据库)
- 删除 One-API 后台登录(LiteLLM 通过 litellm-config.yaml 配置)
- 保留 LobeChat(功能完整、已验证稳定、用户体验好)

用户体验: 打开 https://129.146.203.203:3210 → 输入 Access Code → 问答(后台自动选最好的模型)

已部署并验证端到端可访问(HTTP 307 重定向正常)
This commit is contained in:
ericwyuan
2026-08-23 09:57:54 +08:00
parent eeccf36ab3
commit a301e97059
3 changed files with 17 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ http {
ssl_certificate_key /etc/nginx/certs/privkey.pem;
location / {
proxy_pass http://openwebui:8080;
proxy_pass http://lobe-chat:3210;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;