> ## Documentation Index
> Fetch the complete documentation index at: https://cndoc-langchain.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI 集成

> 使用 LangChain Python 与 OpenAI 集成。

本页涵盖了所有 LangChain 与 [OpenAI](https://en.wikipedia.org/wiki/OpenAI) 的集成。

## 模型接口

<Columns cols={2}>
  <Card title="ChatOpenAI" href="/oss/python/integrations/chat/openai" cta="开始使用" icon="message" arrow>
    OpenAI 聊天模型。
  </Card>

  <Card title="AzureChatOpenAI" href="/oss/python/integrations/chat/azure_chat_openai" cta="开始使用" icon="brand-windows" arrow>
    具有企业功能的 Azure OpenAI 聊天模型。
  </Card>

  <Card title="OpenAIEmbeddings" href="/oss/python/integrations/embeddings/openai" cta="开始使用" icon="stack-2" arrow>
    OpenAI 嵌入模型。
  </Card>

  <Card title="AzureOpenAIEmbeddings" href="/oss/python/integrations/embeddings/azure_openai" cta="开始使用" icon="brand-windows" arrow>
    具有企业功能的 Azure OpenAI 嵌入模型。
  </Card>
</Columns>

## 工具和工具包

<Columns cols={2}>
  <Card title="Dall-E 图像生成器" href="/oss/python/integrations/tools/dalle_image_generator" cta="开始使用" icon="photo" arrow>
    使用 OpenAI 的 Dall-E 模型进行文本到图像生成。
  </Card>
</Columns>

## 检索器

<Columns cols={2}>
  <Card title="ChatGPTPluginRetriever" href="/oss/python/integrations/retrievers/chatgpt-plugin" cta="开始使用" icon="download" arrow>
    检索实时信息；例如，体育比分、股票价格、最新新闻等。
  </Card>
</Columns>

## 文档加载器

<Columns cols={2}>
  <Card title="ChatGPTLoader" href="/oss/python/integrations/document_loaders/chatgpt_loader" cta="开始使用" icon="file" arrow>
    从您的 ChatGPT 数据导出文件夹加载 `conversations.json`。
  </Card>
</Columns>

## 其他

<Columns cols={2}>
  <Card title="OpenAI" href="/oss/python/integrations/llms/openai" cta="开始使用" icon="cursor-text" arrow>
    （旧版）OpenAI 文本补全模型。
  </Card>

  <Card title="AzureOpenAI" href="/oss/python/integrations/llms/azure_openai" cta="开始使用" icon="brand-windows" arrow>
    托管在 Azure 上的（旧版）OpenAI 文本补全模型的包装器。
  </Card>

  <Card title="Adapter" href="/oss/python/integrations/adapters/openai" cta="开始使用" icon="arrows-left-right" arrow>
    将 LangChain 模型适配到 OpenAI API。
  </Card>

  <Card title="OpenAIModerationChain" href="https://python.langchain.com/v0.1/docs/guides/productionization/safety/moderation" cta="开始使用" icon="link" arrow>
    检测可能具有仇恨、暴力等内容的文本。
  </Card>
</Columns>

***

<div className="source-links">
  <Callout icon="terminal-2">
    [将这些文档](/use-these-docs) 通过 MCP 连接到 Claude、VSCode 等，以获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/oss/python/integrations/providers/openai.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
