
Grok 订阅账号的自动停调阈值在 sub2api v0.2.18 上从不触发:判定只读两个由响应头派生的键,而 xAI 不给有效读数,本文给出三处源码、现场判据与今晚的处置顺序。
account_scheduling_threshold_temp_unschedulable 都没有。1EvaluateAccountSchedulingThreshold,按平台分派。2grokThresholdCandidates,候选只有一个。两个字段直接取自两个 extra 键。4grok_sched_utilization 与 grok_sched_reset_at。函数上方的注释写得很直白:官方计费的 7d/30d 窗口不参与这里的自动停调。
backend/internal/service/account_scheduling_threshold_eval.go 第 336–358 行:候选的 usedPercent 与 until 都来自 account.Extra,注释写明计费窗口不参与自动停调。buildGrokSchedulerExtraUpdates。5
backend/internal/service/openai_gateway_grok.go 第 1895–1925 行:第 1916 行的 reset.After(now) 是写入 grok_sched_reset_at 的唯一条件,注释里写着过去值与无效值直接不写。x-ratelimit-reset-*。1grok_sched_reset_at 从不写入。account_scheduling_threshold_temp_unschedulable,就是这条链断了。Upstream service temporarily unavailable。10upstream_error_message 里。判容量还是判账号,看前者。passive_usage_7d_*,所以两边不一致。response.interrupt 被回 400 unsupported websocket request type 的那条路。X-Oai-Attestation 只用本项目自己生成的值,并放开了 Linux / Docker 宿主调用 ChatGPT Live。POST /v1/realtime/transcription_sessions 在 v8.0.42 上恒定回 501 realtime_capability_not_supported。
internal/client/codex/live/capabilities.go 第 210–218 行:writeCapabilityNotSupported 把 http.StatusNotImplemented 与 realtime_capability_not_supported 写死在同一行。client_secrets 加 intent=transcription 的 WebSocket。GET /api/v1/admin/grok/accounts/:id/quota 拉一次真实用量。26POST /api/v1/admin/accounts/:id/schedulable 关掉该账号的调度,不要等 429。27upstream_error_message,再判断是容量还是账号。grokThresholdCandidates 加一个基于计费快照的候选。1usage_percent、截止取 period_end,并用快照的抓取时间判断时效,避免拿旧数据误停。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
github.com
status.openai.com
status.claude.com
codex-reset.com
github.com
github.com
This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.