Looks like the last commit (aa8a969) is breaking something.
I am getting this error:
.../.local/share/nvim/lazy/ChatGPT.nvim/lua/chatgpt/api.lua:267: attempt to concatenate field 'OPENAI_API_KEY' (a nil value)
|
Api.AUTHORIZATION_HEADER = "Authorization: Bearer " .. Api.OPENAI_API_KEY |
FWIW, here is my config:
config = function()
local home = vim.fn.expand("$HOME")
require("chatgpt").setup({
api_key_cmd = "gpg --decrypt " .. home .. "/openai_api_key.txt.gpg"
})
end,
Looks like the last commit (aa8a969) is breaking something.
I am getting this error:
ChatGPT.nvim/lua/chatgpt/api.lua
Line 267 in aa8a969
FWIW, here is my config: