manateelazycat / mind-wave

Emacs AI plugin based on ChatGPT API
GNU General Public License v3.0
159 stars 25 forks source link

Is it possible to get API key from environment variable? #3

Closed ezchi closed 1 year ago

ezchi commented 1 year ago

Playing around several tools and applications based on ChatGPT. Some of them get the API key through environment OPENAI_API_KEY. Do you think that will be better than source it from API txt file?

export OPENAI_API_KEY='your_api_key'
manateelazycat commented 1 year ago

https://github.com/manateelazycat/mind-wave/commit/e2403ac0bbc9a54aaff647e65a9ec7c17d615683