Home / Class/ TestAzureOpenAIStandard Class — langchain Architecture

TestAzureOpenAIStandard Class — langchain Architecture

Architecture documentation for the TestAzureOpenAIStandard class in test_azure_standard.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  fd31df3b_ae23_a060_26e9_525c051bed99["TestAzureOpenAIStandard"]
  9eb1f026_8568_b7aa_2028_9c6b8a5f914d["EmbeddingsUnitTests"]
  fd31df3b_ae23_a060_26e9_525c051bed99 -->|extends| 9eb1f026_8568_b7aa_2028_9c6b8a5f914d
  9fa72cb6_4c55_edd1_0466_177b69d113d0["test_azure_standard.py"]
  fd31df3b_ae23_a060_26e9_525c051bed99 -->|defined in| 9fa72cb6_4c55_edd1_0466_177b69d113d0
  6afb75c3_5adf_7c25_cfad_d454d5740f48["embeddings_class()"]
  fd31df3b_ae23_a060_26e9_525c051bed99 -->|method| 6afb75c3_5adf_7c25_cfad_d454d5740f48
  49bfab31_dcc3_b1cc_9435_b01ae8ebdb3a["embedding_model_params()"]
  fd31df3b_ae23_a060_26e9_525c051bed99 -->|method| 49bfab31_dcc3_b1cc_9435_b01ae8ebdb3a
  29fed520_7aeb_b146_d7eb_03366366e774["init_from_env_params()"]
  fd31df3b_ae23_a060_26e9_525c051bed99 -->|method| 29fed520_7aeb_b146_d7eb_03366366e774

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py lines 7–36

class TestAzureOpenAIStandard(EmbeddingsUnitTests):
    @property
    def embeddings_class(self) -> type[Embeddings]:
        return AzureOpenAIEmbeddings

    @property
    def embedding_model_params(self) -> dict:
        return {"api_key": "api_key", "azure_endpoint": "https://endpoint.com"}

    @property
    def init_from_env_params(self) -> tuple[dict, dict, dict]:
        return (
            {
                "AZURE_OPENAI_API_KEY": "api_key",
                "AZURE_OPENAI_ENDPOINT": "https://endpoint.com",
                "AZURE_OPENAI_AD_TOKEN": "token",
                "OPENAI_ORG_ID": "org_id",
                "OPENAI_API_VERSION": "yyyy-mm-dd",
                "OPENAI_API_TYPE": "type",
            },
            {},
            {
                "openai_api_key": "api_key",
                "azure_endpoint": "https://endpoint.com",
                "azure_ad_token": "token",
                "openai_organization": "org_id",
                "openai_api_version": "yyyy-mm-dd",
                "openai_api_type": "type",
            },
        )

Frequently Asked Questions

What is the TestAzureOpenAIStandard class?
TestAzureOpenAIStandard is a class in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py.
Where is TestAzureOpenAIStandard defined?
TestAzureOpenAIStandard is defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py at line 7.
What does TestAzureOpenAIStandard extend?
TestAzureOpenAIStandard extends EmbeddingsUnitTests.

Analyze Your Own Codebase

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

Try Supermodel Free