ai.vim
ai.vim copied to clipboard
FR: Custom location of file with OpenAI API Key
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.
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?
yeah, that sounds good to me!