Files
dify-docs/ja-jp/plugins/quick-start/develop-plugins/model-plugin

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: モデルプラグイン
---


モデルタイププラグインを導入することで、Difyプラットフォームは特定のモデルプロバイダーが提供するモデルを利用できるようになります。例えば、OpenAIモデルプラグインをインストールすると、DifyプラットフォームからOpenAIのGPT-4やGPT-4o-2024-05-13といったモデルをリクエストできるようになります。

### **モデルプラグインの構造**

プラグインモデルの開発に関する理解を深めるために、モデルタイププラグインの構造例を以下に示します。

*   モデルプロバイダーOpenAI、Anthropic、Googleなどの大規模モデル開発企業です。
*   モデルカテゴリプロバイダーに応じて、大規模言語モデルLLM、テキスト埋め込みモデル、音声テキスト変換モデルなどがあります。
*   具体的なモデル:`claude-3-5-sonnet`、`gpt-4-turbo`など。

プラグインプロジェクトのコード構造:

```bash
- モデルプロバイダー
  - モデルカテゴリ
    - 具体的なモデル
```

Anthropicを例にとると、モデルプラグインの構造は次のようになります。

```bash
- Anthropic
  - llm
    claude-3-5-sonnet-20240620
    claude-3-haiku-20240307
    claude-3-opus-20240229
    claude-3-sonnet-20240229
    claude-instant-1.2
    claude-instant-1
```

OpenAIを例にとると、複数のモデルタイプをサポートしています。

```bash
├── models
│ ├── llm
│ │ ├── chatgpt-4o-latest
│ │ ├── gpt-3.5-turbo
│ │ ├── gpt-4-0125-preview
│ │ ├── gpt-4-turbo
│ │ ├── gpt-4o
│ │ ├── llm
│ │ ├── o1-preview
│ │ └── text-davinci-003
│ ├── moderation
│ │ ├── moderation
│ │ └── text-moderation-stable
│ ├── speech2text
│ │ ├── speech2text
│ │ └── whisper-1
│ ├── text_embedding
│ │ ├── text-embedding-3-large
│ │ └── text_embedding
│ └── tts
│ ├── tts-1-hd
│ ├── tts-1
│ └── tts
```

### **モデルプラグイン作成の準備**

モデルプラグインを作成するには、以下の手順に従ってください。具体的な作成ガイドは、各ドキュメントのタイトルをクリックして参照してください。

1.  [モデルプロバイダーの作成](/ja-jp/plugins/quick-start/develop-plugins/model-plugin/create-model-providers)
2.  [事前定義済み](/ja-jp/guides/model-configuration/predefined-model)モデル、または[カスタム](/ja-jp/guides/model-configuration/customizable-model)モデルの統合
3.  [モデルプラグインのデバッグ](/ja-jp/plugins/quick-start/debug-plugin)

{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}

<CardGroup cols="2">
    <Card
        title="このページを編集する"
        icon="pen-to-square"
        href="https://github.com/langgenius/dify-docs-mintlify/edit/main/ja-jp/plugins/quick-start/develop-plugins/model-plugin/README.mdx"
    >
        直接貢献することでドキュメントの改善にご協力ください
    </Card>
    <Card
        title="問題を報告する"
        icon="github"
        href="https://github.com/langgenius/dify-docs-mintlify/issues/new?title=ドキュメントの問題%3A%20&body=%23%23%20問題の説明%0A%3C%21--%20発見した問題について簡単に説明してください%20--%3E%0A%0A%23%23%20ページリンク%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs-mintlify%2Fblob%2Fmain%2Fja-jp/plugins/quick-start/develop-plugins/model-plugin%2FREADME.mdx%0A%0A%23%23%20提案される変更%0A%3C%21--%20特定の変更案がある場合は、ここで説明してください%20--%3E%0A%0A%3C%21--%20ドキュメントの品質向上にご協力いただきありがとうございます%20--%3E"
    >
        エラーを見つけたり提案がありますか?お知らせください
    </Card>
</CardGroup>