Home / Function/ _mock_httpx_client_stream() — langchain Function Reference

_mock_httpx_client_stream() — langchain Function Reference

Architecture documentation for the _mock_httpx_client_stream() function in test_chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  b88ab13b_c292_a310_e551_e2a8811a3f83["_mock_httpx_client_stream()"]
  9c4a2438_9884_cbb0_3cf5_de8827531653["test_chat_models.py"]
  b88ab13b_c292_a310_e551_e2a8811a3f83 -->|defined in| 9c4a2438_9884_cbb0_3cf5_de8827531653
  style b88ab13b_c292_a310_e551_e2a8811a3f83 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/ollama/tests/unit_tests/test_chat_models.py lines 26–33

def _mock_httpx_client_stream(
    *_args: Any, **_kwargs: Any
) -> Generator[Response, Any, Any]:
    yield Response(
        status_code=200,
        content='{"message": {"role": "assistant", "content": "The meaning ..."}}',
        request=Request(method="POST", url="http://whocares:11434"),
    )

Domain

Subdomains

Frequently Asked Questions

What does _mock_httpx_client_stream() do?
_mock_httpx_client_stream() is a function in the langchain codebase, defined in libs/partners/ollama/tests/unit_tests/test_chat_models.py.
Where is _mock_httpx_client_stream() defined?
_mock_httpx_client_stream() is defined in libs/partners/ollama/tests/unit_tests/test_chat_models.py at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free