Cerebras GPT OSS 120B Modell
Dies ist ein AI Chatbot, Multimodal AI-Bereich Automatisierungsworkflow mit 6 Nodes. Hauptsächlich werden Set, HttpRequest, ChatTrigger und andere Nodes verwendet. Hochgeschwindigkeits-KI-Chat mit OpenAI GPT-OSS-120B-Modell über Cerebras Inferenz
- •Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Verwendete Nodes (6)
Kategorie
{
"id": "fFKIMw0PeIP2TuOx",
"meta": {
"instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
"templateCredsSetupCompleted": true
},
"name": "cerebras with gpt oss 120b",
"tags": [],
"nodes": [
{
"id": "dc93a613-c19f-4dd4-b633-a1112970455d",
"name": "Bei Empfang einer Chat-Nachricht",
"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": "Ausgabe zurückgeben",
"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-Schlüssel setzen",
"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-Endpunkt",
"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": "Haftnotiz",
"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": "Haftnotiz1",
"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
}
]
]
}
}
}Wie verwende ich diesen Workflow?
Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.
Für welche Szenarien ist dieser Workflow geeignet?
Fortgeschritten - KI-Chatbot, Multimodales KI
Ist es kostenpflichtig?
Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.
Verwandte Workflows
Aitor | 1Node
@aitoralonsoHi, 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
Diesen Workflow teilen