HyeonseoNam / auto-classifier

Auto classification plugin for Obsidian using ChatGPT.
MIT License
88 stars 11 forks source link

Request for support for external API key in a dotenv file #4

Open mofosyne opened 1 year ago

mofosyne commented 1 year ago

I would like the plugin to read a .env file which may include something like

export OPENAI_API_KEY=

So i can easily exclude the file when syncing to a git repo.

Refer to https://levelup.gitconnected.com/obsidian-plugin-development-tutorial-how-to-use-environment-variables-d6f9258f3957 for implementation tip

Infomation about dotenv https://www.npmjs.com/package/dotenv

HyeonseoNam commented 1 year ago

Hi, @mofosyne,

I have just realized that Obsidian-git users need this funtionality. I will consider adding it, but it may take some time because I am not familiar with this in detail.

If you want to make direct modifications, PRs are always welcome ! Thanks :)