Repository navigation
Commit f0985a8
committed
fix: honor system proxy env vars for Anthropic online requests (#699)
aiohttp.ClientSession ignores HTTP_PROXY/HTTPS_PROXY/ALL_PROXY unless
trust_env=True is set explicitly, unlike requests/httpx. Since the shared
online request path posts directly via aiohttp rather than the anthropic
SDK client, proxy env vars were silently ignored, causing timeouts or
direct connections in proxied environments.
Sets trust_env=True on the shared aiohttp session used by all online
request processors, and adds a regression test asserting the session
created by aiohttp_connector trusts the environment.1 parent 6d5e247 commit f0985a8
2 files changed
Lines changed: 23 additions & 1 deletion
File tree
- src/bespokelabs/curator/request_processor/online
- tests/unittests
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments