n8n调用出现这个错误This model is not supported in 2.2 version of the Agent node. Please ...
错误信息
n8n调用出现这个错误This model is not supported in 2.2 version of the Agent node. Please upgrade the Agent node to the latest version.
AI 解决方案
报错分析报告
1. 错误翻译
原文:This model is not supported in 2.2 version of the Agent node. Please upgrade the Agent node to the latest version.
译文:此模型在 2.2 版本的 Agent 节点中不受支持。请将 Agent 节点升级到最新版本。
2. 原因分析
您正在使用的 n8n Agent 节点版本过低(版本 2.2),它不支持您尝试调用的AI模型(例如,可能是最新的 GPT-4 模型或特定供应商的模型)。
根本原因:n8n 的 Agent 节点在迭代更新中会添加对新 AI 模型的支持,旧版本节点无法识别新模型的 API 配置或参数,导致调用失败。
3. 解决方案
您需要升级 Agent 节点到最新版本。
方案一:通过 n8n 工作区升级
localhost:5678 或您的域名)。Settings (设置)。Community Nodes (社区节点) 或 Updates (更新) 区域。@n8n/n8n-nodes-langchain 或相关 AI 节点的更新。Update (更新) 按钮。方案二:通过 Docker/CLI 升级(如果你以这种方式部署)
如果您使用 Docker 部署,请拉取最新的 n8n 镜像并重启容器。
# 例如,使用 Docker Compose 的情况
docker-compose pull
docker-compose up -d
方案三:检查工作流设置
如果已升级节点但错误仍在,请在工作流编辑器中:
Model (模型) 下拉列表,选择当前版本已支持的模型。4. ️ 预防措施
请完成升级后重试操作。