test_azure.py — langchain Source File
Architecture documentation for test_azure.py, a python file in the langchain codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 650a25f1_61d6_f3e4_13d0_436f1f1ee2e6["test_azure.py"] 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 650a25f1_61d6_f3e4_13d0_436f1f1ee2e6 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 0b28cff6_d823_1571_d2bb_ec61508cc89c["langchain_openai"] 650a25f1_61d6_f3e4_13d0_436f1f1ee2e6 --> 0b28cff6_d823_1571_d2bb_ec61508cc89c style 650a25f1_61d6_f3e4_13d0_436f1f1ee2e6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import Any
from langchain_openai import AzureOpenAI
def test_azure_model_param(monkeypatch: Any) -> None:
monkeypatch.delenv("OPENAI_API_BASE", raising=False)
llm = AzureOpenAI(
openai_api_key="secret-api-key", # type: ignore[call-arg]
azure_endpoint="endpoint",
api_version="version",
azure_deployment="gpt-35-turbo-instruct",
)
# Test standard tracing params
ls_params = llm._get_ls_params()
assert ls_params == {
"ls_provider": "azure",
"ls_model_type": "llm",
"ls_model_name": "gpt-35-turbo-instruct",
"ls_temperature": 0.7,
"ls_max_tokens": 256,
}
Domain
Subdomains
Functions
Dependencies
- langchain_openai
- typing
Source
Frequently Asked Questions
What does test_azure.py do?
test_azure.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What functions are defined in test_azure.py?
test_azure.py defines 1 function(s): test_azure_model_param.
What does test_azure.py depend on?
test_azure.py imports 2 module(s): langchain_openai, typing.
Where is test_azure.py in the architecture?
test_azure.py is located at libs/partners/openai/tests/unit_tests/llms/test_azure.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/partners/openai/tests/unit_tests/llms).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free