test_openai_modelname_to_contextsize_invalid() — langchain Function Reference
Architecture documentation for the test_openai_modelname_to_contextsize_invalid() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 230cbef4_a8b5_5f3b_067a_fd6b0d1bb39e["test_openai_modelname_to_contextsize_invalid()"] 2edc9f83_2189_a9c8_70f5_10e2e98e8272["test_base.py"] 230cbef4_a8b5_5f3b_067a_fd6b0d1bb39e -->|defined in| 2edc9f83_2189_a9c8_70f5_10e2e98e8272 style 230cbef4_a8b5_5f3b_067a_fd6b0d1bb39e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/integration_tests/llms/test_base.py lines 255–258
def test_openai_modelname_to_contextsize_invalid() -> None:
"""Test model name to context size on an invalid model."""
with pytest.raises(ValueError):
OpenAI().modelname_to_contextsize("foobar")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_openai_modelname_to_contextsize_invalid() do?
test_openai_modelname_to_contextsize_invalid() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/llms/test_base.py.
Where is test_openai_modelname_to_contextsize_invalid() defined?
test_openai_modelname_to_contextsize_invalid() is defined in libs/partners/openai/tests/integration_tests/llms/test_base.py at line 255.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free