Commit 78bb4dc
committed
🤖 fix: respect HTTP_PROXY env vars for network requests
Switch from undici Agent to EnvHttpProxyAgent to automatically
respect HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables.
This enables debugging/inspection via proxy tools like mitmproxy and
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 30b1c08 commit 78bb4dc
1 file changed
+4
-2
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 | | |
| |||
0 commit comments