Home / Function/ test_chat_openai_llm_output_contains_model_name() — langchain Function Reference

test_chat_openai_llm_output_contains_model_name() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 196–202

def test_chat_openai_llm_output_contains_model_name() -> None:
    """Test llm_output contains model_name."""
    chat = ChatOpenAI(max_tokens=MAX_TOKEN_COUNT)  # type: ignore[call-arg]
    message = HumanMessage(content="Hello")
    llm_result = chat.generate([[message]])
    assert llm_result.llm_output is not None
    assert llm_result.llm_output["model_name"] == chat.model_name

Domain

Subdomains

Frequently Asked Questions

What does test_chat_openai_llm_output_contains_model_name() do?
test_chat_openai_llm_output_contains_model_name() 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_llm_output_contains_model_name() defined?
test_chat_openai_llm_output_contains_model_name() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 196.

Analyze Your Own Codebase

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

Try Supermodel Free