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 e17203d0_454a_485c_9090_74656a104167["init_from_env_params()"] edb40573_63c9_fbcc_5b98_f024fa4e5b33["TestOpenAIStandard"] e17203d0_454a_485c_9090_74656a104167 -->|defined in| edb40573_63c9_fbcc_5b98_f024fa4e5b33 style e17203d0_454a_485c_9090_74656a104167 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py lines 31–50
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/chat_models/test_azure_standard.py.
Where is init_from_env_params() defined?
init_from_env_params() is defined in libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free