Home / Function/ test_chat_xai_invalid_streaming_params() — langchain Function Reference

test_chat_xai_invalid_streaming_params() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  72007846_97f3_a3c9_01e9_4ff19f52ebea["test_chat_xai_invalid_streaming_params()"]
  d3aa2dec_5fef_73c8_892f_691289c5feaf["test_chat_models.py"]
  72007846_97f3_a3c9_01e9_4ff19f52ebea -->|defined in| d3aa2dec_5fef_73c8_892f_691289c5feaf
  style 72007846_97f3_a3c9_01e9_4ff19f52ebea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/xai/tests/unit_tests/test_chat_models.py lines 40–49

def test_chat_xai_invalid_streaming_params() -> None:
    """Test that streaming correctly invokes on_llm_new_token callback."""
    with pytest.raises(ValueError):
        ChatXAI(
            model=MODEL_NAME,
            max_tokens=10,
            streaming=True,
            temperature=0,
            n=5,
        )

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free