18 号到期的重置,本来想着今天用的,结果。。。
今天 18 号一大早就发现重置已经没有了。。。。。。 我昨天下班就点了重置,就怕今天来不及 还好我是昨天下班的时候用了 那个重置时间是粗略的,没显示具体时间,实际上是有一个对应的时间戳,比如 早上 8 点 15 分 过期啥的这个确实比较鸡贼 一样的。。。 一样,我以为是到中午十二点过期。 CodexBar 可以看到具体的时间。我就刚好在 2 分钟过期前点了重置 @chunqiuyiyu #5 https://gist.github.com/Lua12138/4a1e69aedb32a4297ba7c6c78688cf1b 会显示具体的时间 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
这个脚本 可以直接显示具体时间。
亲测有效。 我本来想 应该和上次一样 11 点失效, 查询后 已经失效了。 浪费一点