0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 151 forks source link

Use OPENAI_API_KEY #126

Open Freed-Wu opened 11 months ago

Freed-Wu commented 11 months ago

OpenAI's official environment variable is OPENAI_API_KEY. Use it to avoid users to set two environment variables. Refer https://pypi.org/project/openai