lc_secrets() — langchain Function Reference
Architecture documentation for the lc_secrets() function in azure.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6c4a60d7_e1e7_da78_2c80_bf527b5f3ef1["lc_secrets()"] 4b940a4c_8618_3ca0_9fa5_c378f5b8f6ac["AzureChatOpenAI"] 6c4a60d7_e1e7_da78_2c80_bf527b5f3ef1 -->|defined in| 4b940a4c_8618_3ca0_9fa5_c378f5b8f6ac style 6c4a60d7_e1e7_da78_2c80_bf527b5f3ef1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/azure.py lines 583–588
def lc_secrets(self) -> dict[str, str]:
"""Get the mapping of secret environment variables."""
return {
"openai_api_key": "AZURE_OPENAI_API_KEY",
"azure_ad_token": "AZURE_OPENAI_AD_TOKEN",
}
Domain
Subdomains
Source
Frequently Asked Questions
What does lc_secrets() do?
lc_secrets() is a function in the langchain codebase, defined in libs/partners/openai/langchain_openai/chat_models/azure.py.
Where is lc_secrets() defined?
lc_secrets() is defined in libs/partners/openai/langchain_openai/chat_models/azure.py at line 583.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free