test_initialize_azure_openai_with_base_set() — langchain Function Reference
Architecture documentation for the test_initialize_azure_openai_with_base_set() function in test_azure_embeddings.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 63c76574_61ec_37da_3349_f162af645674["test_initialize_azure_openai_with_base_set()"] d6c8b849_f702_4d55_ec75_db907b92ae0d["test_azure_embeddings.py"] 63c76574_61ec_37da_3349_f162af645674 -->|defined in| d6c8b849_f702_4d55_ec75_db907b92ae0d style 63c76574_61ec_37da_3349_f162af645674 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/embeddings/test_azure_embeddings.py lines 18–28
def test_initialize_azure_openai_with_base_set() -> None:
with mock.patch.dict(os.environ, {"OPENAI_API_BASE": "https://api.openai.com"}):
embeddings = AzureOpenAIEmbeddings( # type: ignore[call-arg, 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",
openai_api_base=None,
)
assert embeddings.model == "text-embedding-large"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_initialize_azure_openai_with_base_set() do?
test_initialize_azure_openai_with_base_set() 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_with_base_set() defined?
test_initialize_azure_openai_with_base_set() is defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_embeddings.py at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free