Home / Function/ test_openai_o1_temperature() — langchain Function Reference

test_openai_o1_temperature() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  087db3ed_b622_0b4e_a355_6118a00b15ea["test_openai_o1_temperature()"]
  48232d20_f8c1_b597_14fa_7dc407e9bfe5["test_base.py"]
  087db3ed_b622_0b4e_a355_6118a00b15ea -->|defined in| 48232d20_f8c1_b597_14fa_7dc407e9bfe5
  style 087db3ed_b622_0b4e_a355_6118a00b15ea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/chat_models/test_base.py lines 156–160

def test_openai_o1_temperature() -> None:
    llm = ChatOpenAI(model="o1-preview")
    assert llm.temperature == 1
    llm = ChatOpenAI(model_name="o1-mini")  # type: ignore[call-arg]
    assert llm.temperature == 1

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free