@tiger16601/n8n-nodes-fastgpt 1.1.15 → 1.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,17 +34,17 @@ exports.chatOperations = [
34
34
  },
35
35
  },
36
36
  },
37
- // NEW: 请求插件,通过variables传递输入参数,获取pluginData输出
37
+ // NEW: 请求插件,通过appId指定应用,variables传递输入参数
38
38
  {
39
39
  name: "请求插件",
40
40
  value: "请求插件",
41
41
  action: "请求插件",
42
42
  description:
43
- "调用插件类型的应用。无需chatId和messages,通过variables传入插件参数,通过pluginData获取输出。",
43
+ "调用插件类型的应用。通过appId指定应用,variables传入插件参数,通过pluginData获取输出。",
44
44
  routing: {
45
45
  request: {
46
46
  method: "POST",
47
- // NEW: 请求插件端点(与Agent共用端点)
47
+ // NEW: 请求插件端点
48
48
  url: "/v1/chat/completions",
49
49
  body: {
50
50
  stream: false,
@@ -300,7 +300,7 @@ const completeOperations = [
300
300
  required: true,
301
301
  displayOptions: {
302
302
  show: {
303
- operation: ["多模态对话", "交互节点继续运行", "请求插件"],
303
+ operation: ["多模态对话", "交互节点继续运行"],
304
304
  resource: ["chat"],
305
305
  },
306
306
  },
@@ -494,6 +494,27 @@ const completeOperations = [
494
494
  },
495
495
  },
496
496
  },
497
+ // NEW: 应用ID - 用于请求插件
498
+ {
499
+ displayName: "应用ID",
500
+ description: "插件应用的App ID",
501
+ name: "pluginAppId",
502
+ type: "string",
503
+ default: "",
504
+ required: true,
505
+ displayOptions: {
506
+ show: {
507
+ operation: ["请求插件"],
508
+ resource: ["chat"],
509
+ },
510
+ },
511
+ routing: {
512
+ send: {
513
+ type: "body",
514
+ property: "appId",
515
+ },
516
+ },
517
+ },
497
518
  {
498
519
  displayName: "响应对话详情",
499
520
  name: "detail",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiger16601/n8n-nodes-fastgpt",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "Fastgpt智能问答",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",