@kanaiji 在 gpt赠送的api额度用于codex客户端报错解决方案 中发帖
gpt赠送的api额度用于codex客户端会报错
status_code=400, This organization cannot be used for Codex usage because it is enrolled in the monthly API Credits benefit with ChatGPT subscriptions. To enable Codex usage, an Organization Owner must cancel the benefit on https://platform.openai.com/settings/organization/billing/overview.
经过测试发现是请求头里的originator字段控制的,codex客户端会带上originator: codex_cli_rs",只需要删除这个字段即可
并且似...