I found similar issue here and the recommendation is:
- Make sure the correct value is saved;
- Execute
source ~/.bash_profile
for Mac. - Set the right key using
export OPENAI_API_KEY=""
https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key
You can also see similar thread:
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola