End of the file.
You can also run this commands instead of editing using nano:
Run the following command in your terminal, replacing yourkey with your API key.
echo "export OPENAI_API_KEY='yourkey'" >> ~/.zshrc
Update the shell with the new variable:
source ~/.zshrc
Confirm that you have set your environment variable using the following command.
echo $OPENAI_API_KEY