init_from_env_params() — langchain Function Reference
Architecture documentation for the init_from_env_params() function in test_azure_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 29fed520_7aeb_b146_d7eb_03366366e774["init_from_env_params()"] fd31df3b_ae23_a060_26e9_525c051bed99["TestAzureOpenAIStandard"] 29fed520_7aeb_b146_d7eb_03366366e774 -->|defined in| fd31df3b_ae23_a060_26e9_525c051bed99 style 29fed520_7aeb_b146_d7eb_03366366e774 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py lines 17–36
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",
},
)
Domain
Subdomains
Source
Frequently Asked Questions
What does init_from_env_params() do?
init_from_env_params() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py.
Where is init_from_env_params() defined?
init_from_env_params() is defined in libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py at line 17.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free