test_generate_streaming_multiple_prompts_error() — langchain Function Reference
Architecture documentation for the test_generate_streaming_multiple_prompts_error() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 408b0eea_19b3_0fe5_d63d_d075ca25923c["test_generate_streaming_multiple_prompts_error()"] 6395ab08_3ae5_72d1_1c6a_5b74f14238f7["test_base.py"] 408b0eea_19b3_0fe5_d63d_d075ca25923c -->|defined in| 6395ab08_3ae5_72d1_1c6a_5b74f14238f7 style 408b0eea_19b3_0fe5_d63d_d075ca25923c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/llms/test_base.py lines 113–120
def test_generate_streaming_multiple_prompts_error() -> None:
"""Ensures ValueError when streaming=True and multiple prompts."""
llm = OpenAI(streaming=True)
with pytest.raises(
ValueError, match="Cannot stream results with multiple prompts\\."
):
llm._generate(["foo", "bar"])
Domain
Subdomains
Source
Frequently Asked Questions
What does test_generate_streaming_multiple_prompts_error() do?
test_generate_streaming_multiple_prompts_error() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/llms/test_base.py.
Where is test_generate_streaming_multiple_prompts_error() defined?
test_generate_streaming_multiple_prompts_error() is defined in libs/partners/openai/tests/unit_tests/llms/test_base.py at line 113.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free