Home / Function/ test_chat_openai_invalid_streaming_params() — langchain Function Reference

test_chat_openai_invalid_streaming_params() — langchain Function Reference

Architecture documentation for the test_chat_openai_invalid_streaming_params() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  44a87351_f5b8_c38f_0e37_35a61d160236["test_chat_openai_invalid_streaming_params()"]
  bd382a4e_442c_13ae_530c_6e34bc43623d["test_base.py"]
  44a87351_f5b8_c38f_0e37_35a61d160236 -->|defined in| bd382a4e_442c_13ae_530c_6e34bc43623d
  style 44a87351_f5b8_c38f_0e37_35a61d160236 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 214–217

def test_chat_openai_invalid_streaming_params() -> None:
    """Test that streaming correctly invokes on_llm_new_token callback."""
    with pytest.raises(ValueError):
        ChatOpenAI(max_tokens=MAX_TOKEN_COUNT, streaming=True, temperature=0, n=5)  # type: ignore[call-arg]

Domain

Subdomains

Frequently Asked Questions

What does test_chat_openai_invalid_streaming_params() do?
test_chat_openai_invalid_streaming_params() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py.
Where is test_chat_openai_invalid_streaming_params() defined?
test_chat_openai_invalid_streaming_params() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 214.

Analyze Your Own Codebase

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

Try Supermodel Free