Getting this error when I run test file: openai.error.AuthenticationError: No API key provided
On Mac, modified bash file with this command: nano ~/.bash_profile
added this line:
export OPENAI_API_KEY=sk-RnRrKB1M<rest of my key>
after saving file, I type this at terminal prompt:
echo $OPENAI_API_KEY
but no key is returned.
What am I doing wrong?