TestAzureOpenAIStandardLegacy Class — langchain Architecture
Architecture documentation for the TestAzureOpenAIStandardLegacy class in test_azure_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 329cdd6c_4ce0_1a70_86f9_d5736cd71ba5["TestAzureOpenAIStandardLegacy"] 971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"] 329cdd6c_4ce0_1a70_86f9_d5736cd71ba5 -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54 ac889e67_03a0_d6e2_5187_ffd0c9db2d7f["test_azure_standard.py"] 329cdd6c_4ce0_1a70_86f9_d5736cd71ba5 -->|defined in| ac889e67_03a0_d6e2_5187_ffd0c9db2d7f 4108a62f_d939_597a_2999_9c16869db0bd["chat_model_class()"] 329cdd6c_4ce0_1a70_86f9_d5736cd71ba5 -->|method| 4108a62f_d939_597a_2999_9c16869db0bd e3a14f49_4c81_31e7_8ca7_365f380c15a0["chat_model_params()"] 329cdd6c_4ce0_1a70_86f9_d5736cd71ba5 -->|method| e3a14f49_4c81_31e7_8ca7_365f380c15a0 cf81c991_24f3_6f7b_c6d7_9cc9ed401182["structured_output_kwargs()"] 329cdd6c_4ce0_1a70_86f9_d5736cd71ba5 -->|method| cf81c991_24f3_6f7b_c6d7_9cc9ed401182
Relationship Graph
Source Code
libs/partners/openai/tests/integration_tests/chat_models/test_azure_standard.py lines 72–89
class TestAzureOpenAIStandardLegacy(ChatModelIntegrationTests):
"""Test a legacy model."""
@property
def chat_model_class(self) -> type[BaseChatModel]:
return AzureChatOpenAI
@property
def chat_model_params(self) -> dict:
return {
"deployment_name": os.environ["AZURE_OPENAI_LEGACY_CHAT_DEPLOYMENT_NAME"],
"openai_api_version": OPENAI_API_VERSION,
"azure_endpoint": OPENAI_API_BASE,
}
@property
def structured_output_kwargs(self) -> dict:
return {"method": "function_calling"}
Extends
Source
Frequently Asked Questions
What is the TestAzureOpenAIStandardLegacy class?
TestAzureOpenAIStandardLegacy is a class in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_azure_standard.py.
Where is TestAzureOpenAIStandardLegacy defined?
TestAzureOpenAIStandardLegacy is defined in libs/partners/openai/tests/integration_tests/chat_models/test_azure_standard.py at line 72.
What does TestAzureOpenAIStandardLegacy extend?
TestAzureOpenAIStandardLegacy extends ChatModelIntegrationTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free