Home / Function/ _get_default_httpx_client() — langchain Function Reference

_get_default_httpx_client() — langchain Function Reference

Architecture documentation for the _get_default_httpx_client() function in _client_utils.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5a42af1f_f4e7_0e0e_fde7_1bd93a71e658["_get_default_httpx_client()"]
  a9fa707c_4805_5baa_b091_8a88501fc639["_client_utils.py"]
  5a42af1f_f4e7_0e0e_fde7_1bd93a71e658 -->|defined in| a9fa707c_4805_5baa_b091_8a88501fc639
  style 5a42af1f_f4e7_0e0e_fde7_1bd93a71e658 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/langchain_anthropic/_client_utils.py lines 49–64

def _get_default_httpx_client(
    *,
    base_url: str | None,
    timeout: Any = _NOT_GIVEN,
    anthropic_proxy: str | None = None,
) -> _SyncHttpxClientWrapper:
    kwargs: dict[str, Any] = {
        "base_url": base_url
        or os.environ.get("ANTHROPIC_BASE_URL")
        or "https://api.anthropic.com",
    }
    if timeout is not _NOT_GIVEN:
        kwargs["timeout"] = timeout
    if anthropic_proxy is not None:
        kwargs["proxy"] = anthropic_proxy
    return _SyncHttpxClientWrapper(**kwargs)

Domain

Subdomains

Frequently Asked Questions

What does _get_default_httpx_client() do?
_get_default_httpx_client() is a function in the langchain codebase, defined in libs/partners/anthropic/langchain_anthropic/_client_utils.py.
Where is _get_default_httpx_client() defined?
_get_default_httpx_client() is defined in libs/partners/anthropic/langchain_anthropic/_client_utils.py at line 49.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free