Download patches/@npmcli%2Fagent@4.0.2.patch from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 418 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/patches/%40npmcli%252Fagent%404.0.2.patch
- Command line
-
hf download hf://SaylorTwift/opencode/patches/@npmcli%2Fagent@4.0.2.patch
-
curl -L -o @npmcli%2Fagent@4.0.2.patch https://huggingface.co/SaylorTwift/opencode/resolve/main/patches/%40npmcli%252Fagent%404.0.2.patch
418 Bytes
| diff --git a/lib/agents.js b/lib/agents.js | |
| index 45ec59c4c13757379095131c4f0a5ea6f7284f45..0763b031e355a755ec6a26f98461aa3f63b8339b 100644 | |
| --- a/lib/agents.js | |
| +++ b/lib/agents.js | |
| module.exports = class Agent extends AgentBase { | |
| } | |
| get proxy () { | |
| - return this.#proxy ? { url: this.#proxy } : {} | |
| + return this.#proxy ? { url: this.#proxy.toString() } : {} | |
| } | |
| #getProxy (options) { | |