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

Add support for reading OPENAI_API_KEY from a file path specified in the config #588

Open
giladbarnea opened this issue Jul 7, 2024 · 0 comments

Comments

@giladbarnea
Copy link

giladbarnea commented Jul 7, 2024

My sgpt config, including the .sgptrc file, is backed up via source control. This means I constantly need to manually make sure the OPENAI_API_KEY line is kept out of commits.

This is cumbersome and only takes one lapse in concentration to accidentally push my key.

A simple fix would be to let OPENAI_API_KEY point to a file path. This separate file would hold the key in plaintext, making it easier to keep out of version control.

image

Corresponding PR: #589

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

1 participant