You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow custom HTTP transport and client configuration
Add `transport` and `http_client` parameters to `Stream` and `AsyncStream`
so users can configure connection pool limits, retries, SSL, HTTP/2, and
other httpx transport-level settings — matching the Java SDK pattern where
a pre-built OkHttpClient can be passed in.
- `transport` (primary): user provides an `httpx.HTTPTransport` /
`httpx.AsyncHTTPTransport`; the SDK builds its own client with it and
manages the lifecycle.
- `http_client` (escape hatch): user provides a fully built
`httpx.Client` / `httpx.AsyncClient`; the SDK layers auth headers and
params on top. Caller manages lifecycle.
When either is provided, all sub-clients (video, chat, moderation, feeds)
share a single underlying httpx client via the `stream` back-reference
instead of each creating their own.
Made-with: Cursor
0 commit comments