Home / Function/ test_initialize_azure_openai() — langchain Function Reference

test_initialize_azure_openai() — langchain Function Reference

Architecture documentation for the test_initialize_azure_openai() function in test_azure_embeddings.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c5ebe4a4_07a5_58f0_7050_ac0a504a905f["test_initialize_azure_openai()"]
  d6c8b849_f702_4d55_ec75_db907b92ae0d["test_azure_embeddings.py"]
  c5ebe4a4_07a5_58f0_7050_ac0a504a905f -->|defined in| d6c8b849_f702_4d55_ec75_db907b92ae0d
  style c5ebe4a4_07a5_58f0_7050_ac0a504a905f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/embeddings/test_azure_embeddings.py lines 7–15

def test_initialize_azure_openai() -> None:
    embeddings = AzureOpenAIEmbeddings(  # type: ignore[call-arg]
        model="text-embedding-large",
        api_key="xyz",  # type: ignore[arg-type]
        azure_endpoint="my-base-url",
        azure_deployment="35-turbo-dev",
        openai_api_version="2023-05-15",
    )
    assert embeddings.model == "text-embedding-large"

Domain

Subdomains

Frequently Asked Questions

What does test_initialize_azure_openai() do?
test_initialize_azure_openai() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_embeddings.py.
Where is test_initialize_azure_openai() defined?
test_initialize_azure_openai() is defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_embeddings.py at line 7.

Analyze Your Own Codebase

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

Try Supermodel Free