Commit e26ed44
committed
feat: add proxy and SOCKS5 support to HTTP client configuration
- Add proxy, socks, and skip verify options to the Anthropic client configuration
- Introduce `DefaultHeaderTransport` for adding headers to HTTP requests
- Implement HTTP client setup with optional proxy and SOCKS5 support
- Add new options `WithProxyURL`, `WithSocksURL`, and `WithSkipVerify` for client configuration
Signed-off-by: appleboy <[email protected]>1 parent b9d7f8a commit e26ed44
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
119 | 132 | | |
120 | 133 | | |
121 | 134 | | |
| |||
148 | 161 | | |
149 | 162 | | |
150 | 163 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 164 | + | |
155 | 165 | | |
156 | 166 | | |
157 | 167 | | |
| |||
0 commit comments