Repository navigation
Commit 37a9eba
feat(client)!: Replace httpx with httpx2 and use OS trust store by default
BREAKING CHANGE: Replaced httpx with httpx2 across the SDK, removed legacy httpx
fallback support and GOOGLE_GENAI_HTTP_CLIENT switching, and switched the
default httpx2 SSL context to use the OS certificate trust store (via
truststore / httpx2.create_ssl_context()) when SSL_CERT_FILE and SSL_CERT_DIR
are not set.
The Interactions client is now generated with Speakeasy's
`httpClientLibrary: httpx2`, and `httpx2` is a required dependency of the
package (the `httpx` dependency and the `httpx2` extra are removed).
#2680
PiperOrigin-RevId: 10041523081 parent 26f9707 commit 37a9eba
61 files changed
Lines changed: 430 additions & 838 deletions
File tree
- docs/source
- google/genai
- _gaos
- _hooks
- errors
- lib
- utils
- tests
- chats
- client
- errors
- files
- interactions
- mcp
- models
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 253 | | |
280 | 254 | | |
281 | | - | |
| 255 | + | |
282 | 256 | | |
283 | | - | |
| 257 | + | |
284 | 258 | | |
285 | 259 | | |
286 | 260 | | |
| |||
295 | 269 | | |
296 | 270 | | |
297 | 271 | | |
298 | | - | |
| 272 | + | |
299 | 273 | | |
300 | 274 | | |
301 | 275 | | |
| |||
304 | 278 | | |
305 | 279 | | |
306 | 280 | | |
307 | | - | |
308 | | - | |
| 281 | + | |
| 282 | + | |
309 | 283 | | |
310 | 284 | | |
311 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
0 commit comments