Skip to content

Commit ead9ef8

Browse files
docs(ops): sync DEPLOYMENT.md to v1.7.51 live state
1 parent 6380626 commit ead9ef8

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

ops/DEPLOYMENT.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
> 真值以 `docker ps` 为准,不信文档。文档滞后时以线上状态为准并反向更新本文。
44
5-
## 1. 线上状态(截至 2026-05-13 14:18
5+
## 1. 线上状态(截至 2026-05-13 16:46
66

77
|||
88
|---|---|
9-
| 镜像 | `codex2api:v1.7.50-partial-images``latest`|
9+
| 镜像 | `codex2api:v1.7.51-overload-retry``latest`|
1010
| 容器 | `codex2api` |
11-
| 端口 | `8122`(nginx upstream 指向 127.0.0.1:8122|
11+
| 端口 | `8123`(nginx upstream 指向 127.0.0.1:8123|
1212
| 部署目录 | `/data/codex2api/` |
1313
| Admin | https://cx.wyzai.top/admin/ secret = `65187777` |
1414
| 数据库 | PG `codex2api-postgres`, Redis `codex2api-redis`, 网络 `codex2api_codex2api-net` |
@@ -18,7 +18,7 @@
1818
| 容器 body 上限 | **64 MB**`CODEX_MAX_REQUEST_BODY_SIZE_MB=64`|
1919
| Dialog 采集 | ✅ 启用(默认 true,写入 PG `dialog_logs`|
2020
| Prefer-paid 调度 | Admin 面板运行时开关(默认 OFF = prefer_free)|
21-
| 本地 git HEAD | `bb9d5ec``merge/upstream-2026-05-10`,未 push)|
21+
| 本地 git HEAD | `6380626``merge/upstream-2026-05-10`,未 push)|
2222

2323
## 2. SSH 接入
2424

@@ -40,10 +40,10 @@ sshpass -p '2R18UapfDNoT' ssh -p 24598 root@156.238.226.55
4040
```bash
4141
SSH='sshpass -p f3t7uCBeTCizT12 ssh -p 22222 -o StrictHostKeyChecking=no root@152.53.240.159'
4242
SCP='sshpass -p f3t7uCBeTCizT12 scp -P 22222 -o StrictHostKeyChecking=no'
43-
OLD=8122; NEW=8123; TAG=v1.7.51-xxx
43+
OLD=8123; NEW=8121; TAG=v1.7.52-xxx
4444
```
4545

46-
> **下次端口**81228123(或回轮 8121;切忌选 8120 = sms-relay)
46+
> **下次端口**81238121(或 8122;切忌选 8120 = sms-relay)
4747
>
4848
> **起容器前先验空**`ss -tlnp | grep ":81[12][0-9]"` 确认目标端口无人监听
4949
@@ -177,7 +177,8 @@ docker exec codex2api-postgres psql -U codex2api -d codex2api -c \
177177
| v1.7.47-prefer-paid | 8125 | 2026-05-08 | 付费账号优先 Free 兜底(admin 开关)+ Dialog logs 异步采集(⚠️ 代码曾仅在服务器,已合并回本地 9fcd50b)|
178178
| v1.7.48-upstream-may10-paid | 8123 | 2026-05-10 | upstream port(流式 usage / 5h 紧迫性 / 工具参数剥离 / validation 扩充)+ 合并回 v1.7.47 的 prefer-paid & dialog logs + 413 提到 64MB |
179179
| v1.7.49-tool-calls-fix | 8121 | 2026-05-13 | 修复非流式 ChatCompletions tool_calls 丢失:从 `response.output_item.done` 收 function_call(上游不一定在 `completed.output[]` 回填),stream=true 不受影响 |
180-
| **v1.7.50-partial-images** | **8122** | **2026-05-13** | **修复 `metadata.image_partial_images` 不生效:Translator 在两条路径上都把 `response.image_generation_call.partial_image` 事件静默丢弃,现在渐进预览帧会输出为单独的 markdown image content chunk(N partial + 1 final)**|
180+
| v1.7.50-partial-images | 8122 | 2026-05-13 | 修复 `metadata.image_partial_images` 不生效:Translator 在两条路径上都把 `response.image_generation_call.partial_image` 事件静默丢弃,现在渐进预览帧会输出为单独的 markdown image content chunk(N partial + 1 final)|
181+
| **v1.7.51-overload-retry** | **8123** | **2026-05-13** | **扩充 capacity 重试 marker:原有 `at capacity` / `try a different model` 只能识别 codex CLI 客户端渲染文案,未命中上游真实载荷。10min 实测样本:886 请求 / 149 `response.failed` = **17% 隐藏故障率**,全部漏出到客户端。新增 markers 覆盖 `Our servers are currently overloaded` (90%) / `An error occurred while processing your request` (10%) / `try again later`,透明重试机制现在能实际拦住这些错误** |
181182

182183
## 8. 不要再做的事
183184

@@ -204,7 +205,7 @@ docker exec codex2api-postgres psql -U codex2api -d codex2api -c \
204205

205206
```bash
206207
# /data/codex2api/.env
207-
CODEX_PORT=8122 # 当前端口(随蓝绿轮换)
208+
CODEX_PORT=8123 # 当前端口(随蓝绿轮换)
208209
CODEX_MAX_REQUEST_BODY_SIZE_MB=64 # 请求体上限,默认 32MB;v1.7.48 起调到 64MB 解决 413
209210
DIALOG_COLLECTION_ENABLED=true # 对话采集总开关(默认 true,启动级);false=不创建实例
210211
CODEX_TRANSPORT_MODE=standard # TLS 指纹:standard=Go 原生 / utls_chrome=仿 Chrome

0 commit comments

Comments
 (0)