Home / Function/ test_azure_model_param() — langchain Function Reference

test_azure_model_param() — langchain Function Reference

Architecture documentation for the test_azure_model_param() function in test_azure.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  920235c1_81e2_056e_246d_797912533d99["test_azure_model_param()"]
  357fa0f1_3c60_d7cc_9073_8f622abafc35["test_azure.py"]
  920235c1_81e2_056e_246d_797912533d99 -->|defined in| 357fa0f1_3c60_d7cc_9073_8f622abafc35
  style 920235c1_81e2_056e_246d_797912533d99 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/llms/test_azure.py lines 6–23

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

Frequently Asked Questions

What does test_azure_model_param() do?
test_azure_model_param() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/llms/test_azure.py.
Where is test_azure_model_param() defined?
test_azure_model_param() is defined in libs/partners/openai/tests/unit_tests/llms/test_azure.py at line 6.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free