test_initialize_more() — langchain Function Reference
Architecture documentation for the test_initialize_more() function in test_azure.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fdfde1f5_bc6a_8770_d3ca_934969665383["test_initialize_more()"] c0f70782_2552_3264_2ecc_ede3cff537f7["test_azure.py"] fdfde1f5_bc6a_8770_d3ca_934969665383 -->|defined in| c0f70782_2552_3264_2ecc_ede3cff537f7 style fdfde1f5_bc6a_8770_d3ca_934969665383 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_azure.py lines 25–45
def test_initialize_more() -> None:
llm = AzureChatOpenAI( # type: ignore[call-arg]
api_key="xyz", # type: ignore[arg-type]
azure_endpoint="my-base-url",
azure_deployment="35-turbo-dev",
openai_api_version="2023-05-15",
temperature=0,
model="gpt-35-turbo",
model_version="0125",
)
assert llm.openai_api_key is not None
assert llm.openai_api_key.get_secret_value() == "xyz"
assert llm.azure_endpoint == "my-base-url"
assert llm.deployment_name == "35-turbo-dev"
assert llm.openai_api_version == "2023-05-15"
assert llm.temperature == 0
assert llm.stream_usage
ls_params = llm._get_ls_params()
assert ls_params.get("ls_provider") == "azure"
assert ls_params.get("ls_model_name") == "gpt-35-turbo-0125"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_initialize_more() do?
test_initialize_more() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/chat_models/test_azure.py.
Where is test_initialize_more() defined?
test_initialize_more() is defined in libs/partners/openai/tests/unit_tests/chat_models/test_azure.py at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free