ai.vim icon indicating copy to clipboard operation
ai.vim copied to clipboard

FR: Custom location of file with OpenAI API Key

Open chrisgrieser opened this issue 2 years ago • 2 comments

Being able to define a custom location of a file containing the API key would be useful for those of us who made their dotfiles public.

The workaround right now is to set it via vim.env outside of the dotfiles repo, and symlink that file into the nvim config, which is unnecessarily many hoops to jump through just to get it set up.

chrisgrieser avatar Dec 13 '22 11:12 chrisgrieser

Sounds good to me. I'm feeling like moving the API key to a file instead of an env var by default would make more sense. Maybe defaulting to ~/.config/nvim/.openai_key with an option to override the file path?

aduros avatar Dec 13 '22 16:12 aduros

yeah, that sounds good to me!

chrisgrieser avatar Dec 16 '22 13:12 chrisgrieser