test_openai_model_param() — langchain Function Reference
Architecture documentation for the test_openai_model_param() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5356da5e_9655_9bf6_db1c_09181ad2699b["test_openai_model_param()"] 48232d20_f8c1_b597_14fa_7dc407e9bfe5["test_base.py"] 5356da5e_9655_9bf6_db1c_09181ad2699b -->|defined in| 48232d20_f8c1_b597_14fa_7dc407e9bfe5 style 5356da5e_9655_9bf6_db1c_09181ad2699b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_base.py lines 86–95
def test_openai_model_param() -> None:
llm = ChatOpenAI(model="foo")
assert llm.model_name == "foo"
llm = ChatOpenAI(model_name="foo") # type: ignore[call-arg]
assert llm.model_name == "foo"
llm = ChatOpenAI(max_tokens=10) # type: ignore[call-arg]
assert llm.max_tokens == 10
llm = ChatOpenAI(max_completion_tokens=10)
assert llm.max_tokens == 10
Domain
Subdomains
Source
Frequently Asked Questions
What does test_openai_model_param() do?
test_openai_model_param() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/chat_models/test_base.py.
Where is test_openai_model_param() defined?
test_openai_model_param() is defined in libs/partners/openai/tests/unit_tests/chat_models/test_base.py at line 86.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free