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

Offer api_key_command config option #183

Open
smackesey opened this issue Jan 2, 2024 · 1 comment
Open

Offer api_key_command config option #183

smackesey opened this issue Jan 2, 2024 · 1 comment

Comments

@smackesey
Copy link

ChatGPT.nvim offers a handy auth method that executes an external command to obtain an API key. This is really nice if you store your API key in e.g. 1Password: https://github.com/jackMort/ChatGPT.nvim#secrets-management

sg.nvim should offer the same thing.

@tjdevries
Copy link
Collaborator

I currently have require('sg.auth').set(endpoint, token), which you could call in your setup if you wanted to provide alternative authentication.

Would that meet what you want to do? I'm not opposed to doing something similar to api_key_command though.

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

No branches or pull requests

5 participants