OpenAI rejects requests
Resolved 💬 8 comments Opened Apr 16, 2025 by mariobm Closed Apr 16, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
<img width="1177" alt="Image" src="https://github.com/user-attachments/assets/4ed34138-8ebf-49ad-a11a-a507472f7306" />
Environment information
- I have OPENAI_API_KEY set in
~/.zshrc - I'm using node v22.13.0
- MacOS 15.4 (24E248)
Steps to reproduce
nvm use --lts(for me it's v22.13.0)- Add
export OPENAI_API_KEY="sk-proj-xxxx"to~/.zshrcand source it (source ~/.zshrc) npm install -g @openai/codexmkdir listing-web && cd listing-web && git initcodex -m o4-mini -a full-auto --image someimage.jpgalsocodex "what can you do?"
Expected result
- Not to reject my call
Steps tried to mitigate
- Create new API Key
EDIT: Fixed typo in commands
8 Comments
Can repro on node v22.2.0.
Same for me on v23.4.0. OSX 14.3, tried multiple api keys. Just trying
codex "explain this code to me"edit I think it has to do with access to particular models. I just tried
codex "explain this codebase to me" -m "gpt-4o"And it worked fine. the defualt model is o4-mini, and I think I don't have access to that on my account
change a model to 'o4-mini-2025-04-16' than it will work!
Should be fixed in https://www.npmjs.com/package/@openai/codex/v/0.1.4161114 for o4-mini
@pashvc Thanks, it's working now. Although it's misleading because the gif in the README.md clearly shows
o4-minithanks for the report and glad it's now fixed, closing!
I can't seem to upgrade to 0.1.4161114. What am I doing wrongly?
versions:
log:
npm-update.log
@tibo-openai Can you look this up again? I have the same issue as @dllu above