18 号到期的重置,本来想着今天用的,结果。。。

发布于

今天 18 号一大早就发现重置已经没有了。。。。。。

---

原文链接:[点击查看](https://www.v2ex.com/t/1228155)

评论(4)

其实它那个重置时间没给准点,实际上后台有个时间戳,比如早上 8 点 15 分这种具体时间就偷偷过期了,这操作确实有点鸡贼。

· 0 个赞

用 CodexBar 插件能看到具体的倒计时。我之前就是看着时间,赶在过期前 2 分钟卡点刷新的。

· 0 个赞

分享一个查重置具体时间的 Python 脚本,亲测有效!

```python
python3 - <<'PY'
import json
import urllib.request
from pathlib import Path

auth_path = Path("~/.codex/auth.json").expanduser()
auth = json.loads(auth_path.read_text())

token = auth["tokens"]["access_token"]
account = auth["tokens"]["account_id"]

request = urllib.request.Request(
"https://chatgpt.com/backend-api/wham/rate-limit-reset-credits",
headers={
"Authorization": f"Bearer {token}",
"ChatGPT-Account-ID": account,
"originator": "Codex Desktop",
},
)

response = urllib.request.urlopen(request)
print(response.read().decode())
PY
```

· 0 个赞

我还以为跟上次一样 11 点才失效呢,刚查了一下发现已经过期了,亏了一点。

· 0 个赞