Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mofosyne opened this issue May 4, 2023 · 1 comment
Open

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

mofosyne opened this issue May 4, 2023 · 1 comment

Comments

@mofosyne
Copy link

mofosyne commented May 4, 2023

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
Copy link
Owner

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants