_build_async_httpx_client() — langchain Function Reference
Architecture documentation for the _build_async_httpx_client() function in _client_utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 0df66358_b472_ef6a_ba65_f4e0f69f5316["_build_async_httpx_client()"] 15814c96_373f_f86b_f2fa_7830cc4d0ae3["_client_utils.py"] 0df66358_b472_ef6a_ba65_f4e0f69f5316 -->|defined in| 15814c96_373f_f86b_f2fa_7830cc4d0ae3 5997f28c_55d6_e7da_c52b_2d9cc40d672e["_cached_async_httpx_client()"] 5997f28c_55d6_e7da_c52b_2d9cc40d672e -->|calls| 0df66358_b472_ef6a_ba65_f4e0f69f5316 9a3c54cb_ecdb_4068_d14b_202bbe15233f["_get_default_async_httpx_client()"] 9a3c54cb_ecdb_4068_d14b_202bbe15233f -->|calls| 0df66358_b472_ef6a_ba65_f4e0f69f5316 style 0df66358_b472_ef6a_ba65_f4e0f69f5316 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/_client_utils.py lines 60–68
def _build_async_httpx_client(
base_url: str | None, timeout: Any
) -> _AsyncHttpxClientWrapper:
return _AsyncHttpxClientWrapper(
base_url=base_url
or os.environ.get("OPENAI_BASE_URL")
or "https://api.openai.com/v1",
timeout=timeout,
)
Domain
Subdomains
Source
Frequently Asked Questions
What does _build_async_httpx_client() do?
_build_async_httpx_client() is a function in the langchain codebase, defined in libs/partners/openai/langchain_openai/chat_models/_client_utils.py.
Where is _build_async_httpx_client() defined?
_build_async_httpx_client() is defined in libs/partners/openai/langchain_openai/chat_models/_client_utils.py at line 60.
What calls _build_async_httpx_client()?
_build_async_httpx_client() is called by 2 function(s): _cached_async_httpx_client, _get_default_async_httpx_client.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free