Installation and setup
OPENAI_API_KEY
.
Components
Model interfaces
ChatOpenAI
OpenAI chat models.
AzureChatOpenAI
Wrapper for OpenAI chat models hosted on Azure.
OpenAI
Legacy OpenAI text completion models.
AzureOpenAI
Wrapper for legacy OpenAI text completion models hosted on Azure.
OpenAIEmbeddings
OpenAI embedding models.
Tools and toolkits
Retrievers
Document Loaders
Other
Adapter
Adapt LangChain models to OpenAI APIs.
OpenAIModerationChain
Detect text that could be hateful, violent, etc.