ChatGPT.nvim
ChatGPT.nvim copied to clipboard
Can add the curl proxy setting?
curl: -x, --proxy [protocol://]host[:port] Use this proxy
Api.job = job
:new({
command = "curl",
args = {
url,
"-H",
"Content-Type: application/json",
"-H",
"Authorization: Bearer " .. Api.OPENAI_API_KEY,
"-d",
"@" .. TMP_MSG_FILENAME,
},
on_exit = vim.schedule_wrap(function(response, exit_code)
Api.handle_response(response, exit_code, cb)
end),
})