Home / Function/ test_from_llm_rejects_non_chatopenai() — langchain Function Reference

test_from_llm_rejects_non_chatopenai() — langchain Function Reference

Architecture documentation for the test_from_llm_rejects_non_chatopenai() function in test_flare.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5316fb15_cd94_4077_c381_e9b31ec88454["test_from_llm_rejects_non_chatopenai()"]
  61b72c8b_1d90_92a9_95b4_7adf79f2a9cf["test_flare.py"]
  5316fb15_cd94_4077_c381_e9b31ec88454 -->|defined in| 61b72c8b_1d90_92a9_95b4_7adf79f2a9cf
  style 5316fb15_cd94_4077_c381_e9b31ec88454 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_flare.py lines 25–30

def test_from_llm_rejects_non_chatopenai() -> None:
    class Dummy:
        pass

    with pytest.raises(TypeError):
        FlareChain.from_llm(Dummy())  # type: ignore[arg-type]

Domain

Subdomains

Frequently Asked Questions

What does test_from_llm_rejects_non_chatopenai() do?
test_from_llm_rejects_non_chatopenai() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_flare.py.
Where is test_from_llm_rejects_non_chatopenai() defined?
test_from_llm_rejects_non_chatopenai() is defined in libs/langchain/tests/unit_tests/chains/test_flare.py at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free