Download Latest Version 0.59.39 source code.tar.gz (58.4 MB)
Email in envelope

Get an email when there's a new version of Langroid

Home / 0.59.39
Name Modified Size InfoDownloads / Week
Parent folder
langroid-0.59.39-py3-none-any.whl < 23 hours ago 430.4 kB
langroid-0.59.39.tar.gz < 23 hours ago 381.4 kB
0.59.39 source code.tar.gz < 23 hours ago 58.4 MB
0.59.39 source code.zip < 23 hours ago 58.9 MB
README.md < 23 hours ago 791 Bytes
Totals: 5 Items   118.1 MB 0

Support async client factory for OpenAI HTTP client configuration

PR #990 enhances the http_client_factory pattern in OpenAIGPTConfig to support both sync and async HTTP clients.

What's New

The factory function now supports two patterns:

  1. Single client (existing): return an httpx.Client — async client is created automatically
  2. Tuple of clients (new): return (httpx.Client, httpx.AsyncClient) — both are used as provided

This allows users to configure sync and async clients with identical settings (e.g. proxies, SSL certs) while maintaining full backward compatibility.

Details

See the updated docs: OpenAI HTTP Client Configuration

Source: README.md, updated 2026-02-28