Skip to content

Commit 80c8897

Browse files
authored
fix: create plugin by curl (#3580)
1 parent e933dac commit 80c8897

File tree

6 files changed

+178
-118
lines changed

6 files changed

+178
-118
lines changed

files/docker/docker-compose-milvus.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ services:
159159
# 日志等级: debug, info, warn, error
160160
- LOG_LEVEL=info
161161
- STORE_LOG_LEVEL=warn
162+
# 工作流最大运行次数
163+
- WORKFLOW_MAX_RUN_TIMES=1000
164+
# 批量执行节点,最大输入长度
165+
- WORKFLOW_MAX_LOOP_TIMES=100
166+
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
167+
- ALLOWED_ORIGINS=
168+
# 是否开启IP限制,默认不开启
169+
- USE_IP_LIMIT=false
162170
volumes:
163171
- ./config.json:/app/data/config.json
164172

files/docker/docker-compose-pgvector.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ services:
116116
# 日志等级: debug, info, warn, error
117117
- LOG_LEVEL=info
118118
- STORE_LOG_LEVEL=warn
119+
# 工作流最大运行次数
120+
- WORKFLOW_MAX_RUN_TIMES=1000
121+
# 批量执行节点,最大输入长度
122+
- WORKFLOW_MAX_LOOP_TIMES=100
123+
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
124+
- ALLOWED_ORIGINS=
125+
# 是否开启IP限制,默认不开启
126+
- USE_IP_LIMIT=false
119127
volumes:
120128
- ./config.json:/app/data/config.json
121129

files/docker/docker-compose-zilliz.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ services:
9797
# 日志等级: debug, info, warn, error
9898
- LOG_LEVEL=info
9999
- STORE_LOG_LEVEL=warn
100+
# 工作流最大运行次数
101+
- WORKFLOW_MAX_RUN_TIMES=1000
102+
# 批量执行节点,最大输入长度
103+
- WORKFLOW_MAX_LOOP_TIMES=100
104+
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
105+
- ALLOWED_ORIGINS=
106+
# 是否开启IP限制,默认不开启
107+
- USE_IP_LIMIT=false
100108
volumes:
101109
- ./config.json:/app/data/config.json
102110

packages/global/core/workflow/type/io.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ export type FlowNodeInputItemType = InputComponentPropsType & {
4949
debugLabel?: string;
5050
description?: string; // field desc
5151
required?: boolean;
52-
toolDescription?: string; // If this field is not empty, it is entered as a tool
5352
enum?: string;
5453

54+
toolDescription?: string; // If this field is not empty, it is entered as a tool
55+
5556
// render components params
5657
canEdit?: boolean; // dynamic inputs
5758
isPro?: boolean; // Pro version field

packages/service/core/workflow/dispatch/agent/runTool/toolChoice.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const runToolWithToolChoice = async (
210210
properties[item.key] = {
211211
...jsonSchema,
212212
description: item.toolDescription || '',
213-
enum: item.enum?.split('\n').filter(Boolean) || []
213+
enum: item.enum?.split('\n').filter(Boolean) || undefined
214214
};
215215
});
216216

@@ -227,6 +227,7 @@ export const runToolWithToolChoice = async (
227227
}
228228
};
229229
});
230+
230231
// Filter histories by maxToken
231232
const filterMessages = (
232233
await filterGPTMessageByMaxTokens({

0 commit comments

Comments
 (0)