TestOpenAIStandard Class — langchain Architecture
Architecture documentation for the TestOpenAIStandard class in test_base_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a289a335_b7fd_02a3_1dd5_10c589aa8ba0["TestOpenAIStandard"] f4b40f56_1158_0e72_1cac_d0121e4eabd8["ChatModelUnitTests"] a289a335_b7fd_02a3_1dd5_10c589aa8ba0 -->|extends| f4b40f56_1158_0e72_1cac_d0121e4eabd8 bfa47673_2956_6cd9_1e07_ab53392428e8["test_base_standard.py"] a289a335_b7fd_02a3_1dd5_10c589aa8ba0 -->|defined in| bfa47673_2956_6cd9_1e07_ab53392428e8 5526c9db_0cdb_6f4b_af7d_1035e504ea86["chat_model_class()"] a289a335_b7fd_02a3_1dd5_10c589aa8ba0 -->|method| 5526c9db_0cdb_6f4b_af7d_1035e504ea86 3b5af9c2_8f58_dcd0_50a9_adfb29b466c6["init_from_env_params()"] a289a335_b7fd_02a3_1dd5_10c589aa8ba0 -->|method| 3b5af9c2_8f58_dcd0_50a9_adfb29b466c6
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py lines 9–30
class TestOpenAIStandard(ChatModelUnitTests):
@property
def chat_model_class(self) -> type[BaseChatModel]:
return ChatOpenAI
@property
def init_from_env_params(self) -> tuple[dict, dict, dict]:
return (
{
"OPENAI_API_KEY": "api_key",
"OPENAI_ORG_ID": "org_id",
"OPENAI_API_BASE": "api_base",
"OPENAI_PROXY": "https://proxy.com",
},
{},
{
"openai_api_key": "api_key",
"openai_organization": "org_id",
"openai_api_base": "api_base",
"openai_proxy": "https://proxy.com",
},
)
Extends
Source
Frequently Asked Questions
What is the TestOpenAIStandard class?
TestOpenAIStandard is a class in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py.
Where is TestOpenAIStandard defined?
TestOpenAIStandard is defined in libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py at line 9.
What does TestOpenAIStandard extend?
TestOpenAIStandard extends ChatModelUnitTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free