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

# OpenAI 集成

> 使用 LangChain Python 与 OpenAI 进行集成。

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

## 模型接口

<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 Image Generator" 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="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/i18n\zh-CN\oss\python\integrations\providers\openai.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>

  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>
</div>
