Tech
[程序员] [亲测有效] Codex 赠送的重置机会,有效期查询方法
🚀教大家一个方法,查询 Codex 赠送的重置机会什么时候到期!
方法很简单,将下面的提示词发送给 Codex 即可。
========🔥提示词==========
请使用本机 Codex 凭证查一下 rate-limit reset credits:
读取 ~/.codex/auth.json 里的 tokens.access_token ,请求接口:
https://chatgpt.com/backend-api/wham/rate-limit-reset-credits
要求:
不要打印 access_token 、refresh_token 、cookie 或完整唯一 ID
只汇总 available_count 、每个 credit 的 status/title/granted_at/expires_at
把 granted_at/expires_at 从 UTC 转成本地时间
如果状态码返回 401 ,说明是凭证失效或没带对 Authorization header
========🔥提示词==========
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX