Highlights
- 容器内版本与热更新:管理台对照 GitHub Release;挂载
docker.sock后在容器内docker pull+compose force-recreate,无需宿主机 watcher(仍可用request_file兼容旧部署) - API Key 新建可见:列表最新在前、创建后乐观插入;stats 失败不拖垮列表;NULL note 安全扫描
- 注册优化:默认并发更保守、Redis 镜像节流、stop 立即释放 receiver/client;前端 ~140ms 轮询、稳态 batch-only
- 继承 v2.0.3:TempMail.lol、empty model output 模型封禁、邮件 Key 槽位防污染
镜像(GHCR,路径全小写)
docker pull ghcr.io/hm2899/grokcli-2api:2.0.4
docker pull ghcr.io/hm2899/grokcli-2api:latest容器内热更新(compose)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./:/compose
environment:
GROK2API_HOT_UPDATE_MODE: docker
GROK2API_COMPOSE_DIR: /compose
GROK2API_DOCKER_SERVICE: grokcli-2api镜像内含静态 docker 客户端与 scripts/g2a-hot-update-incontainer.sh。
版本钉
grok2api/app.pyAPP_VERSION=2.0.4internal/buildinfo.Version=2.0.4- git tag
v2.0.4