-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Config api_key_cmd
did not return a value when executed
#355
Comments
|
I have tried that but I got the same error message. |
I also have the same error. I am using the security bin from macOS to get the key from keychain. here is how I install the plugin using packer. use({
"jackMort/ChatGPT.nvim",
config = function()
require("chatgpt").setup({
api_key_cmd = "security find-generic-password -w -s 'openai' -a 'neovim'"
})
end,
requires = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim"
}
})
The command
prints the key in a fresh session without any further interaction required. |
@psteinroe as a workaround, I set
|
I love this plugin but I can't make it work.
I use Plug to install it:
I have a
secret.txt.gpg
in my home directory that was encrypted with the following command:gpg --encrypt --recipient [my email] secret.txt
The contents of the
secret.txt
are$OPENAI_API_KEY=xxxxxxxxxxxxxxxx
And I try to get the
OPENAI_API_KEY
like so:The error I'm getting is Config
api_key_cmd
did not return a value when executedWhat am I doing wrong here ?
Thanks!
The text was updated successfully, but these errors were encountered: