langchain-openaiUsage documentation Refer to the docs for a high-level guide on how to use each module. These reference pages contain auto-generated API documentation for each module, focusing on the "what" rather than the "how" or "why" (i.e. no end-to-end tutorials or conceptual overviews).
ChatOpenAI — OpenAI chat models. Reference
AzureChatOpenAI — Wrapper for OpenAI chat models hosted on Azure. Reference
OpenAI — (Legacy) OpenAI text completion models. Reference
AzureOpenAI — Wrapper for (legacy) OpenAI text completion models hosted on Azure. Reference
OpenAIEmbeddings — OpenAI embedding models. Reference
AzureOpenAIEmbeddings — Wrapper for OpenAI embedding models hosted on Azure. Reference
BaseChatOpenAI — Base class for OpenAI chat models. Reference
Middleware — OpenAI-specific middleware for moderation and safety. Reference
Raised when OpenAI flags content and exit_behavior is set to "error".
Moderate agent traffic using OpenAI's moderation endpoint.
AzureOpenAI embedding model integration.
OpenAI embedding model integration.
Azure OpenAI chat model integration.
BadRequestError raised when input exceeds OpenAI's context limit.
APIError raised when input exceeds OpenAI's context limit.
Base wrapper around OpenAI large language models for chat.
Interface to OpenAI chat model APIs.
Error raised when OpenAI Structured Outputs API returns a refusal.
Azure-specific OpenAI large language models.
Base OpenAI large language model class.
OpenAI completion model integration.