Switching to login with ChatGPT probably works, but how to fix the “use API key“ scenario?
I am using Windows, and I want to use an OpenAI API Key. I tried the key with read-only, restricted and all permissions, i put the key in the env var as well as in config.toml, and also entered it when starting codex extension for the first time. Unfortunately, no luck. Still get stream error: exceeded retry limit, last status: 401 Unauthorized; retrying
It started to work! It looks like it requires All permission on API key. And if you change it recently you need to wait about 5 minutes. Looks like having the key in auth.json (codex adds it there when asks you to login to ChatGPT or use API key) is enough you don’t need to add it to env variables or in config.toml
hello, for some reasons, I have to use API Key, and it will have the issue “exceeded retry limit, last status: 401 Unauthorized”, can anyone solve the problem?