Home / Function/ test_openai_llm_output_contains_model_name() — langchain Function Reference

test_openai_llm_output_contains_model_name() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ebc7ccca_58c0_f291_a959_6ff0f049d2bb["test_openai_llm_output_contains_model_name()"]
  2edc9f83_2189_a9c8_70f5_10e2e98e8272["test_base.py"]
  ebc7ccca_58c0_f291_a959_6ff0f049d2bb -->|defined in| 2edc9f83_2189_a9c8_70f5_10e2e98e8272
  style ebc7ccca_58c0_f291_a959_6ff0f049d2bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/llms/test_base.py lines 82–87

def test_openai_llm_output_contains_model_name() -> None:
    """Test llm_output contains model_name."""
    llm = OpenAI(max_tokens=10)
    llm_result = llm.generate(["Hello, how are you?"])
    assert llm_result.llm_output is not None
    assert llm_result.llm_output["model_name"] == llm.model_name

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free