Commit 80c8897e by Archer Committed by GitHub

fix: create plugin by curl (#3580)

parent e933dacb
...@@ -159,6 +159,14 @@ services: ...@@ -159,6 +159,14 @@ services:
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
- LOG_LEVEL=info - LOG_LEVEL=info
- STORE_LOG_LEVEL=warn - STORE_LOG_LEVEL=warn
# 工作流最大运行次数
- WORKFLOW_MAX_RUN_TIMES=1000
# 批量执行节点,最大输入长度
- WORKFLOW_MAX_LOOP_TIMES=100
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
- ALLOWED_ORIGINS=
# 是否开启IP限制,默认不开启
- USE_IP_LIMIT=false
volumes: volumes:
- ./config.json:/app/data/config.json - ./config.json:/app/data/config.json
......
...@@ -116,6 +116,14 @@ services: ...@@ -116,6 +116,14 @@ services:
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
- LOG_LEVEL=info - LOG_LEVEL=info
- STORE_LOG_LEVEL=warn - STORE_LOG_LEVEL=warn
# 工作流最大运行次数
- WORKFLOW_MAX_RUN_TIMES=1000
# 批量执行节点,最大输入长度
- WORKFLOW_MAX_LOOP_TIMES=100
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
- ALLOWED_ORIGINS=
# 是否开启IP限制,默认不开启
- USE_IP_LIMIT=false
volumes: volumes:
- ./config.json:/app/data/config.json - ./config.json:/app/data/config.json
......
...@@ -97,6 +97,14 @@ services: ...@@ -97,6 +97,14 @@ services:
# 日志等级: debug, info, warn, error # 日志等级: debug, info, warn, error
- LOG_LEVEL=info - LOG_LEVEL=info
- STORE_LOG_LEVEL=warn - STORE_LOG_LEVEL=warn
# 工作流最大运行次数
- WORKFLOW_MAX_RUN_TIMES=1000
# 批量执行节点,最大输入长度
- WORKFLOW_MAX_LOOP_TIMES=100
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
- ALLOWED_ORIGINS=
# 是否开启IP限制,默认不开启
- USE_IP_LIMIT=false
volumes: volumes:
- ./config.json:/app/data/config.json - ./config.json:/app/data/config.json
......
...@@ -49,9 +49,10 @@ export type FlowNodeInputItemType = InputComponentPropsType & { ...@@ -49,9 +49,10 @@ export type FlowNodeInputItemType = InputComponentPropsType & {
debugLabel?: string; debugLabel?: string;
description?: string; // field desc description?: string; // field desc
required?: boolean; required?: boolean;
toolDescription?: string; // If this field is not empty, it is entered as a tool
enum?: string; enum?: string;
toolDescription?: string; // If this field is not empty, it is entered as a tool
// render components params // render components params
canEdit?: boolean; // dynamic inputs canEdit?: boolean; // dynamic inputs
isPro?: boolean; // Pro version field isPro?: boolean; // Pro version field
......
...@@ -210,7 +210,7 @@ export const runToolWithToolChoice = async ( ...@@ -210,7 +210,7 @@ export const runToolWithToolChoice = async (
properties[item.key] = { properties[item.key] = {
...jsonSchema, ...jsonSchema,
description: item.toolDescription || '', description: item.toolDescription || '',
enum: item.enum?.split('\n').filter(Boolean) || [] enum: item.enum?.split('\n').filter(Boolean) || undefined
}; };
}); });
...@@ -227,6 +227,7 @@ export const runToolWithToolChoice = async ( ...@@ -227,6 +227,7 @@ export const runToolWithToolChoice = async (
} }
}; };
}); });
// Filter histories by maxToken // Filter histories by maxToken
const filterMessages = ( const filterMessages = (
await filterGPTMessageByMaxTokens({ await filterGPTMessageByMaxTokens({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment