Skip to content

Enhance chat2api and ChatService with model fetching and error handling improvements. Added new endpoint for listing available models and implemented caching for model requests. Updated retry logic in utils to handle specific HTTP status codes more effectively.#278

Open
nanashiwang wants to merge 96 commits into
lanqian528:mainfrom
nanashiwang:main

Conversation

@nanashiwang
Copy link
Copy Markdown

No description provided.

…ng improvements. Added new endpoint for listing available models and implemented caching for model requests. Updated retry logic in utils to handle specific HTTP status codes more effectively.
…action to v4, modified version output handling, added tag existence check before tagging, and updated image names for Docker metadata. Also included permissions for write access to contents and packages.
2、增加账号导入
2、增加一键更新快捷键
@lanqian528
Copy link
Copy Markdown
Owner

lanqian528 commented Apr 19, 2026

From Codex:

  1. 管理后台鉴权有风险:ADMIN_PASSWORD 未配置时回退到 AUTHORIZATION,而且无 secret 时后台接口可能直接放开。
  2. 后台登录后的 admin token 又被注入回前端 JS,等于绕开了 HttpOnly Cookie。
  3. gateway/gpts.py 对空 token 没有判空,未登录访问相关路由时可能直接 500。

…,增强token验证和管理,前端界面相应更新以支持用户交互。
deploy/multi/ 目录提供「一容器一账号」部署,每实例独立数据卷、独立 SOCKS5 代理、独立 AUTH/ADMIN_PWD/API_PREFIX;nginx 按 path 路由(/acc1/v1/…),watchtower label 模式自动更新。

orchestrator/ 是独立 FastAPI 服务(path /orchestrator/),单密码登录 + HMAC cookie + CSRF 双 cookie,提供:
- 增删改账号实例(写 csv → 自动 docker compose up -d)
- 单实例 启动/停止/重启
- 实时仪表盘(state、health、出口 IP、cookie 鲜度)
- 凭证遮蔽默认显示,点击展开 + 写审计
- audit.jsonl 追加写所有 mutation 与 reveal 操作

generate.py 纯 stdlib 模板生成器,支持密钥幂等保留、孤儿 env 清理;空 CSV 时仅启动 orchestrator 用于面板内增账号。manage.sh 包装 init/apply/add/remove/list/status/logs/shell/secrets/orch-password/down 子命令。

不动 chat2api 应用代码,与原单实例 docker-compose.yml 并存,可分阶段迁移。
…est 仍是 2023 旧版与新 docker daemon 不兼容)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants