@tiger16601/n8n-nodes-fastgpt 1.1.11 → 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,18 +32,38 @@ 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对话端点
46
- url: "/api/v1/chat/completions",
65
+ // NEW: 多模态对话端点
66
+ url: "/v1/chat/completions",
47
67
  body: {
48
68
  stream: false,
49
69
  },
@@ -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: "交互节点继续运行",
@@ -64,7 +106,7 @@ exports.chatOperations = [
64
106
  request: {
65
107
  method: "POST",
66
108
  // NEW: 交互节点继续运行端点
67
- url: "/api/v1/chat/completions",
109
+ url: "/v1/chat/completions",
68
110
  body: {
69
111
  stream: true,
70
112
  detail: true,
@@ -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],
@@ -102,7 +144,7 @@ exports.chatOperations = [
102
144
  request: {
103
145
  method: "PUT",
104
146
  // NEW: 修改历史记录标题端点
105
- url: "/api/core/chat/history/updateHistory",
147
+ url: "/core/chat/history/updateHistory",
106
148
  },
107
149
  output: {
108
150
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -119,7 +161,7 @@ exports.chatOperations = [
119
161
  request: {
120
162
  method: "PUT",
121
163
  // NEW: 修改历史记录置顶状态端点(与修改标题共用端点)
122
- url: "/api/core/chat/history/updateHistory",
164
+ url: "/core/chat/history/updateHistory",
123
165
  },
124
166
  output: {
125
167
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -136,7 +178,7 @@ exports.chatOperations = [
136
178
  request: {
137
179
  method: "DELETE",
138
180
  // NEW: 删除单个历史记录端点
139
- url: "/api/core/chat/history/delHistory",
181
+ url: "/core/chat/history/delHistory",
140
182
  },
141
183
  output: {
142
184
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -153,7 +195,7 @@ exports.chatOperations = [
153
195
  request: {
154
196
  method: "DELETE",
155
197
  // NEW: 清空应用历史记录端点
156
- url: "/api/core/chat/history/clearHistories",
198
+ url: "/core/chat/history/clearHistories",
157
199
  },
158
200
  output: {
159
201
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -171,7 +213,7 @@ exports.chatOperations = [
171
213
  request: {
172
214
  method: "GET",
173
215
  // NEW: 获取会话框基本信息端点
174
- url: "/api/core/chat/init",
216
+ url: "/core/chat/init",
175
217
  },
176
218
  output: {
177
219
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -189,7 +231,7 @@ exports.chatOperations = [
189
231
  request: {
190
232
  method: "POST",
191
233
  // NEW: 获取对话记录列表端点
192
- url: "/api/core/chat/getPaginationRecords",
234
+ url: "/core/chat/getPaginationRecords",
193
235
  },
194
236
  output: {
195
237
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -207,7 +249,7 @@ exports.chatOperations = [
207
249
  request: {
208
250
  method: "GET",
209
251
  // NEW: 获取单个对话记录运行详情端点
210
- url: "/api/core/chat/getResData",
252
+ url: "/core/chat/getResData",
211
253
  },
212
254
  output: {
213
255
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -224,7 +266,7 @@ exports.chatOperations = [
224
266
  request: {
225
267
  method: "DELETE",
226
268
  // NEW: 删除对话记录端点
227
- url: "/api/core/chat/record/delete",
269
+ url: "/core/chat/record/delete",
228
270
  },
229
271
  output: {
230
272
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -242,7 +284,7 @@ exports.chatOperations = [
242
284
  request: {
243
285
  method: "POST",
244
286
  // NEW: 点赞/取消点赞端点
245
- url: "/api/core/chat/feedback/updateUserFeedback",
287
+ url: "/core/chat/feedback/updateUserFeedback",
246
288
  },
247
289
  output: {
248
290
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -260,7 +302,7 @@ exports.chatOperations = [
260
302
  request: {
261
303
  method: "POST",
262
304
  // NEW: 点踩/取消点踩端点(与点赞共用端点)
263
- url: "/api/core/chat/feedback/updateUserFeedback",
305
+ url: "/core/chat/feedback/updateUserFeedback",
264
306
  },
265
307
  output: {
266
308
  postReceive: [GenericFunctions_1.sendErrorPostReceive],
@@ -278,7 +320,7 @@ exports.chatOperations = [
278
320
  request: {
279
321
  method: "POST",
280
322
  // NEW: 猜你想问端点
281
- url: "/api/core/ai/agent/v2/createQuestionGuide",
323
+ url: "/core/ai/agent/v2/createQuestionGuide",
282
324
  },
283
325
  output: {
284
326
  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.11",
3
+ "version": "1.1.13",
4
4
  "description": "Fastgpt智能问答",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",