Commit e7e8b82
authored
🤖 fix: respect HTTP_PROXY env vars for network requests (#871)
Switch from undici `Agent` to `EnvHttpProxyAgent` to automatically
respect `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment
variables.
**Benefits:**
- Enables debugging/inspection via proxy tools like mitmproxy
- Supports corporate network environments that require proxying
The `EnvHttpProxyAgent` inherits all the same timeout configuration
(`bodyTimeout: 0`, `headersTimeout: 0`) to prevent `BodyTimeoutError` on
long-running reasoning model pauses.
_Generated with `mux`_1 parent 4cae00f commit e7e8b82
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments