Cerebras GPT OSS 120B モデル

中級

これはAI Chatbot, Multimodal AI分野の自動化ワークフローで、6個のノードを含みます。主にSet, HttpRequest, ChatTriggerなどのノードを使用。 Cerebras推論を使用したOpenAI GPT-OSS-120Bモデルによる高速AIチャット

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "fFKIMw0PeIP2TuOx",
  "meta": {
    "instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
    "templateCredsSetupCompleted": true
  },
  "name": "cerebras with gpt oss 120b",
  "tags": [],
  "nodes": [
    {
      "id": "dc93a613-c19f-4dd4-b633-a1112970455d",
      "name": "チャットメッセージ受信時",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        208,
        0
      ],
      "webhookId": "6530c15b-038f-4b20-bf38-58d034ac3ea6",
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.3
    },
    {
      "id": "a941ace5-5a7e-495a-a37d-8dee620f2bb5",
      "name": "出力を返す",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "409dd10e-b29c-4fac-b471-3204a46034a1",
              "name": "output",
              "type": "string",
              "value": "={{ $json.choices[0].message.content }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "849f0355-d1e5-475c-bc1b-1fdd6c693745",
      "name": "APIキーを設定",
      "type": "n8n-nodes-base.set",
      "position": [
        432,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "f828da75-ee7e-482b-83e5-123005f9878d",
              "name": "apiKey",
              "type": "string",
              "value": "your-api-key"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "1f1590ef-2682-40cc-9e5f-447a2513dcc0",
      "name": "Cerebrasエンドポイント",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        0
      ],
      "parameters": {
        "url": "https://api.cerebras.ai/v1/chat/completions",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "jsonBody": "={\n  \"model\": \"gpt-oss-120b\",\n  \"stream\": false,\n  \"messages\": [\n    {\n      \"content\": \"{{ $('When chat message received').item.json.chatInput }}\",\n      \"role\": \"user\"\n    }\n  ],\n  \"temperature\": 0,\n  \"max_completion_tokens\": -1,\n  \"seed\": 0,\n  \"top_p\": 1\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $json.apiKey }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9eb60d7e-b40e-4e26-87ce-000e99c45985",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -144
      ],
      "parameters": {
        "width": 192,
        "height": 304,
        "content": "## Set API key \n**Create an account and [get your Cerebras key](https://cerebras.ai)**"
      },
      "typeVersion": 1
    },
    {
      "id": "4eba1448-d1eb-4ceb-85df-de10a942a91a",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        176
      ],
      "parameters": {
        "width": 272,
        "height": 240,
        "content": "## Parameters\nSet your endpoint parameters as needed\n- temperature\n- completion tokens\n- top P\n- reasoning effort\n\n[Review the endpoint](https://inference-docs.cerebras.ai/api-reference/chat-completions)"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4a9e3b9f-4132-4871-b159-6c0663bcb49d",
  "connections": {
    "849f0355-d1e5-475c-bc1b-1fdd6c693745": {
      "main": [
        [
          {
            "node": "1f1590ef-2682-40cc-9e5f-447a2513dcc0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f1590ef-2682-40cc-9e5f-447a2513dcc0": {
      "main": [
        [
          {
            "node": "a941ace5-5a7e-495a-a37d-8dee620f2bb5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "dc93a613-c19f-4dd4-b633-a1112970455d": {
      "main": [
        [
          {
            "node": "849f0355-d1e5-475c-bc1b-1fdd6c693745",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - AIチャットボット, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数6
カテゴリー2
ノードタイプ4
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Aitor | 1Node

Aitor | 1Node

@aitoralonso

Hi, I'm Aitor with 1 Node. We create practical AI solutions for businesses. Nothing fancy, just tools that solve real problems and help you scale. Always happy to have a conversation about how we might be able to help you grow

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34