@tiger16601/n8n-nodes-fastgpt 1.1.12 → 1.1.13

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.
@@ -32,17 +32,37 @@ exports.chatOperations = [
32
32
  },
33
33
  },
34
34
  },
35
- // NEW: 请求对话Agent,支持图片/文件
35
+ // NEW: 纯文本对话 - 纯文本消息
36
36
  {
37
- name: "请求对话Agent",
38
- value: "请求对话Agent",
39
- action: "请求对话Agent",
37
+ name: "纯文本对话",
38
+ value: "纯文本对话",
39
+ action: "纯文本对话",
40
+ description: "请求对话Agent进行纯文本对话,使用固定消息格式。",
41
+ routing: {
42
+ request: {
43
+ method: "POST",
44
+ // NEW: 纯文本对话端点
45
+ url: "/v1/chat/completions",
46
+ body: {
47
+ stream: false,
48
+ },
49
+ },
50
+ output: {
51
+ postReceive: [GenericFunctions_1.sendErrorPostReceive],
52
+ },
53
+ },
54
+ },
55
+ // NEW: 多模态对话 - 支持图片/文件
56
+ {
57
+ name: "多模态对话",
58
+ value: "多模态对话",
59
+ action: "多模态对话",
40
60
  description:
41
- "请求对话Agent,支持文本、图片和文件的多模态对话。",
61
+ "请求对话Agent进行多模态对话,支持上传图片(image_url)和文件(file_url)。",
42
62
  routing: {
43
63
  request: {
44
64
  method: "POST",
45
- // NEW: Agent对话端点
65
+ // NEW: 多模态对话端点
46
66
  url: "/v1/chat/completions",
47
67
  body: {
48
68
  stream: false,
@@ -53,6 +73,28 @@ exports.chatOperations = [
53
73
  },
54
74
  },
55
75
  },
76
+ // NEW: 请求插件,通过variables传递输入参数,获取pluginData输出
77
+ {
78
+ name: "请求插件",
79
+ value: "请求插件",
80
+ action: "请求插件",
81
+ description:
82
+ "调用插件类型的应用。无需chatId和messages,通过variables传入插件参数,通过pluginData获取输出。",
83
+ routing: {
84
+ request: {
85
+ method: "POST",
86
+ // NEW: 请求插件端点(与Agent共用端点)
87
+ url: "/v1/chat/completions",
88
+ body: {
89
+ stream: false,
90
+ detail: true,
91
+ },
92
+ },
93
+ output: {
94
+ postReceive: [GenericFunctions_1.sendErrorPostReceive],
95
+ },
96
+ },
97
+ },
56
98
  // NEW: 交互节点继续运行,用于用户选择/表单输入后继续流程
57
99
  {
58
100
  name: "交互节点继续运行",
@@ -85,7 +127,7 @@ exports.chatOperations = [
85
127
  request: {
86
128
  method: "POST",
87
129
  // NEW: 获取历史记录列表端点
88
- url: "/api/core/chat/history/getHistories",
130
+ url: "/core/chat/history/getHistories",
89
131
  },
90
132
  output: {
91
133
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -298,7 +340,13 @@ const completeOperations = [
298
340
  required: true,
299
341
  displayOptions: {
300
342
  show: {
301
- operation: ["客服对话", "请求对话Agent", "交互节点继续运行"],
343
+ operation: [
344
+ "客服对话",
345
+ "纯文本对话",
346
+ "多模态对话",
347
+ "交互节点继续运行",
348
+ "请求插件",
349
+ ],
302
350
  resource: ["chat"],
303
351
  },
304
352
  },
@@ -320,7 +368,7 @@ const completeOperations = [
320
368
  displayOptions: {
321
369
  show: {
322
370
  resource: ["chat"],
323
- operation: ["客服对话", "交互节点继续运行"],
371
+ operation: ["客服对话", "纯文本对话", "交互节点继续运行"],
324
372
  },
325
373
  },
326
374
  required: true,
@@ -379,7 +427,7 @@ const completeOperations = [
379
427
  displayOptions: {
380
428
  show: {
381
429
  resource: ["chat"],
382
- operation: ["客服对话", "请求对话Agent"],
430
+ operation: ["客服对话", "纯文本对话", "多模态对话", "请求插件"],
383
431
  },
384
432
  },
385
433
  placeholder: "添加变量",
@@ -419,7 +467,12 @@ const completeOperations = [
419
467
  default: false,
420
468
  displayOptions: {
421
469
  show: {
422
- operation: ["客服对话", "请求对话Agent", "交互节点继续运行"],
470
+ operation: [
471
+ "客服对话",
472
+ "纯文本对话",
473
+ "多模态对话",
474
+ "交互节点继续运行",
475
+ ],
423
476
  resource: ["chat"],
424
477
  },
425
478
  },
@@ -430,7 +483,7 @@ const completeOperations = [
430
483
  },
431
484
  },
432
485
  },
433
- // NEW: 响应对话项ID - 用于请求对话Agent
486
+ // NEW: 响应对话项ID - 用于Agent对话
434
487
  {
435
488
  displayName: "响应对话项ID",
436
489
  name: "responseChatItemId",
@@ -439,7 +492,7 @@ const completeOperations = [
439
492
  description: "指定响应对话项的ID,用于跟踪对话项(选填)",
440
493
  displayOptions: {
441
494
  show: {
442
- operation: ["请求对话Agent"],
495
+ operation: ["纯文本对话", "多模态对话"],
443
496
  resource: ["chat"],
444
497
  },
445
498
  },
@@ -450,7 +503,7 @@ const completeOperations = [
450
503
  },
451
504
  },
452
505
  },
453
- // NEW: Agent对话消息 - 用于请求对话Agent,支持文本/图片/文件
506
+ // NEW: 多模态对话消息 - 支持文本/图片/文件
454
507
  {
455
508
  displayName: "Agent对话消息",
456
509
  name: "agentMessages",
@@ -461,7 +514,7 @@ const completeOperations = [
461
514
  '消息列表,JSON格式。content支持字符串或数组(可包含text/image_url/file_url类型)。示例:[{"role":"user","content":[{"type":"text","text":"导演是谁"},{"type":"image_url","image_url":{"url":"图片链接"}}]}]',
462
515
  displayOptions: {
463
516
  show: {
464
- operation: ["请求对话Agent"],
517
+ operation: ["多模态对话"],
465
518
  resource: ["chat"],
466
519
  },
467
520
  },
@@ -497,7 +550,12 @@ const completeOperations = [
497
550
  default: true,
498
551
  displayOptions: {
499
552
  show: {
500
- operation: ["客服对话", "请求对话Agent", "交互节点继续运行"],
553
+ operation: [
554
+ "客服对话",
555
+ "纯文本对话",
556
+ "多模态对话",
557
+ "交互节点继续运行",
558
+ ],
501
559
  resource: ["chat"],
502
560
  },
503
561
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiger16601/n8n-nodes-fastgpt",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Fastgpt智能问答",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",