8
n8n 中文网amn8n.com

微调GPT

高级

这是一个Engineering, AI领域的自动化工作流,包含 19 个节点。主要使用 If, Set, Code, Wait, Airtable 等节点,结合人工智能技术实现智能自动化。 使用Google表格或Airtable数据自动化GPT-4o微调

前置要求
  • Airtable API Key
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "n5I2z5PXIENtW9ri",
  "meta": {
    "instanceId": "78cd535d8c280c9f391d1c1efae71bb3b005620d19729d7bf9cd5c4e1509eeb2",
    "templateCredsSetupCompleted": true
  },
  "name": "微调GPT",
  "tags": [],
  "nodes": [
    {
      "id": "fc478cd0-8d84-4e8a-b0d8-7b2a4bb6b65c",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1560,
        0
      ],
      "webhookId": "441a25bb-a01c-4a27-a18b-3e242ea1c1b2",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "4a6895a6-5a5c-48f2-98ea-2c6ed1d428e3",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -180,
        0
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "dec836ff-a0fb-4b6c-9ea6-e7a383343a2b",
      "name": "设置GPT模型",
      "type": "n8n-nodes-base.set",
      "position": [
        1020,
        0
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "f349a57b-0720-4ef1-8b0c-4d07c7908c73",
      "name": "开始微调任务",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1300,
        0
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "857dd175-1d8b-4b11-aabd-27a9ed9519a8",
      "name": "上传JSONL文件",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        740,
        0
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "5b297840-c851-42a0-8490-6b8c2f77e6d2",
      "name": "创建JSONL文件",
      "type": "n8n-nodes-base.code",
      "position": [
        440,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5270eae1-1218-4ef6-b423-b4267df04c2f",
      "name": "检查微调任务",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1740,
        0
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "3a2349ac-836a-4145-b0f9-cf1814db5180",
      "name": "如果成功",
      "type": "n8n-nodes-base.if",
      "position": [
        1920,
        0
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5ab2283c-3c25-4c4a-a786-3bb4c7c68702",
      "name": "如果失败",
      "type": "n8n-nodes-base.if",
      "position": [
        2120,
        100
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "18b2ad15-896b-48b9-a3fd-fc10214172a2",
      "name": "错误:失败",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        2300,
        100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "992ac7d4-c889-4d5c-8359-e85f82068144",
      "name": "将微调模型添加到Airtable",
      "type": "n8n-nodes-base.airtable",
      "disabled": true,
      "position": [
        2620,
        80
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "b0af9c97-b6e2-466d-9961-925685a6eb9d",
      "name": "将微调模型添加到表格",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2620,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "abd193e2-472b-4bee-a4d5-8d78327eebe9",
      "name": "从表格获取示例",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        120,
        -100
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "cc556207-aa3f-4eaa-a8f6-1bec94c055fc",
      "name": "从Airtable获取示例",
      "type": "n8n-nodes-base.airtable",
      "disabled": true,
      "position": [
        120,
        120
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "3d97f4cf-135c-49ba-b47c-43bfdf7ebb18",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "06bc45b5-f279-4154-b3a5-bc7690019a64",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8d11924b-c641-40e7-8b0b-fee2db50a9c7",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bad9fdb4-b769-48f2-9335-3b1a3a2236f5",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1500,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2cce770f-eb21-4c86-8a19-16a2c0e37f2b",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {
    "Schedule Trigger": [
      {
        "json": {
          "Hour": "04",
          "Year": "2025",
          "Month": "June",
          "Minute": "10",
          "Second": "35",
          "Timezone": "America/Los_Angeles (UTC-07:00)",
          "timestamp": "2025-06-10T04:10:35.192-07:00",
          "Day of week": "Tuesday",
          "Day of month": "10",
          "Readable date": "June 10th 2025, 4:10:35 am",
          "Readable time": "4:10:35 am"
        }
      }
    ]
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "6bd0a799-f4a7-4907-8a14-204d023f4ae6",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Check Fine-Tune Job",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Failed": {
      "main": [
        [
          {
            "node": "Error: FAILED",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Succeeded": {
      "main": [
        [
          {
            "node": "Add Fine-Tuned Model to Airtable",
            "type": "main",
            "index": 0
          },
          {
            "node": "Add  Fine-Tuned Model to Sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set GPT Model": {
      "main": [
        [
          {
            "node": "Begin Fine-tune Job",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Examples from Sheet",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Examples from Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create JSONL File": {
      "main": [
        [
          {
            "node": "Upload JSONL File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload JSONL File": {
      "main": [
        [
          {
            "node": "Set GPT Model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Begin Fine-tune Job": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Fine-Tune Job": {
      "main": [
        [
          {
            "node": "If Succeeded",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Examples from Sheet": {
      "main": [
        [
          {
            "node": "Create JSONL File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Examples from Airtable": {
      "main": [
        [
          {
            "node": "Create JSONL File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 工程, 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量19
分类2
节点类型11
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Matty Reed

Matty Reed

@mattyreed1

Student and Teacher | Designer and Builder | Helping Founders Flourish

外部链接
在 n8n.io 查看

分享此工作流