Open qrsforever opened 1 year ago
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), })
curl: -x, --proxy [protocol://]host[:port] Use this proxy