jackMort / jackMort/ChatGPT.nvim
Can add the curl proxy setting?
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 317
- PR merge metrics
- No merged PRs in 30d
Description
curl:
-x, --proxy [protocol://]host[:port] Use this proxy
```lua
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),
})
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the Lua job definition shown in the issue, where the curl command and args are assembled. Trace how plugin settings reach this request, then add a proxy option passed to curl; done means configured requests use the proxy while requests without one remain unchanged. The payload names no test file, so check the project’s existing request or job tests for validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100