
这一小时四仓零新版本:v0.2.17 上一次成功的生图会把 24 小时图片额度写进周额度字段,而读取侧只认那一个键,本文给出判据、三个受影响的地方与今天的三步处置;另附非 Linux 上「立即重启」回 200 却不重启的复核。
readOpenAIQuotaUsedPercent 只认 codex_<window>_used_percent 一个键,取不到就直接返回 0。codex_primary_* 的分支3。
codex_primary_used_percent,这个函数从不过问。openAICanonicalQuotaWindows 确实会拿原始字段重算。但它的前提是两个规范键都缺:只要 7d 键存在,第 3077 行就带着它返回了4。
openAIQuotaHeadroomFactor 用 1 减去 7d 已用比例算因子;下半段第 3077–3079 行才是原始字段回退,两个规范键都在就直接返回。shouldAutoPauseOpenAIAccountByQuota 拿 7d 利用率比账号级 auto_pause_7d_threshold,账号没设就用全局默认5。全局默认是空结构,也就是 0,等于不启用。quota_auto_reset_pending_7d 并通知自动重置6。quota_headroom 默认权重 0,也就是默认不参与打分7。把它开起来的部署,7d 记为 100% 的那张号因子是 0,而「没有任何额度数据」的号拿 0.5。reset_at 写下了,就按那个时间挂满。调度权重那一侧是 8 小时陈旧归中性。codex_7d_window_minutes 是 1440 就是图片额度,10080 才是真周额度。auto_pause_7d_disabled: true,或把 auto_pause_7d_threshold 置 0;把 quota_headroom 权重暂时归零。codex_7d_*,或写回真实周额度。Closes #811710。normalizeCanonical(),把落在 (360, 1440] 分钟的 5h/7d 归类丢掉,这类窗口只写 codex_primary_* 与 codex_secondary_*;写入端和读取端的原始字段回退都改用它。Normalize() 本身不动,429 冷却仍走旧口径。
succeeded 置真,回一句 "Service restart initiated"12。
succeeded 置真,第 225 行返回成功文案。os.Exit(0) 之后能不能回来,取决于外面有没有守护进程:systemd 的 Restart=always,或者容器的重启策略。--restart=no、nohup 手起的进程,退出就退出了。docker compose restart 或重启进程,再用版本徽标核对实际跑着的版本。ErrRestartUnsupported,新增 RestartSupported(),handler 回 501 SYSTEM_RESTART_UNSUPPORTED,前端遇到这个原因就停止倒计时13。| 仓库 | 当前发行版 | 主干最新提交 | 窗口内 |
|---|---|---|---|
| CLIProxyAPI | v8.0.35,10-20 03:02 发布14 | main 10-20 12:23、dev 12:25 | 无提交 |
| sub2api | v0.2.17,10-16 12:41 发布15 | main 10-19 20:45 | #8229 一条 recheck |
| codex-proxy | v2.1.1916 | dev 10-20 04:57 | 无 |
| codex2api | v3.1.117 | main 10-17 05:35 | 无 |
recheck,代码没动20。github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
github.com
status.openai.com
status.anthropic.com
status.cloud.google.com
codex-reset.com
opentherank.com
community.openai.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.