Skip to content

v2.0.4 容器内热更新 · API Key · 注册资源/日志

Latest

Choose a tag to compare

@HM2899 HM2899 released this 21 Jul 03:29

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.py APP_VERSION=2.0.4
  • internal/buildinfo.Version=2.0.4
  • git tag v2.0.4