File tree Expand file tree Collapse file tree 8 files changed +16
-4
lines changed
ui/src/ui-component/extended Expand file tree Collapse file tree 8 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ Flowise support different environment variables to configure your instance. You
159
159
| S3_ENDPOINT_URL | Custom Endpoint for S3 | String | |
160
160
| S3_FORCE_PATH_STYLE | Set this to true to force the request to use path-style addressing | Boolean | false |
161
161
| SHOW_COMMUNITY_NODES | Show nodes created by community | Boolean | |
162
+ | DISABLED_NODES | Hide nodes from UI (comma separated list of node names) | String | |
162
163
163
164
You can also specify the env variables when using ` npx` . For example:
164
165
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ BLOB_STORAGE_PATH=/root/.flowise/storage
52
52
53
53
# APIKEY_STORAGE_TYPE=json (json | db)
54
54
# SHOW_COMMUNITY_NODES=true
55
+ # DISABLED_NODES=bufferMemory,chatOpenAI (comma separated list of node names to disable)
55
56
56
57
# #####################
57
58
# METRICS COLLECTION
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ services:
33
33
- GLOBAL_AGENT_HTTP_PROXY=${GLOBAL_AGENT_HTTP_PROXY}
34
34
- GLOBAL_AGENT_HTTPS_PROXY=${GLOBAL_AGENT_HTTPS_PROXY}
35
35
- GLOBAL_AGENT_NO_PROXY=${GLOBAL_AGENT_NO_PROXY}
36
+ - DISABLED_NODES=${DISABLED_NODES}
37
+ ports :
38
+ - ' ${PORT}:${PORT}'
36
39
volumes :
37
40
- ~/.flowise:/root/.flowise
38
41
networks :
Original file line number Diff line number Diff line change @@ -150,8 +150,9 @@ Flowise 支持不同的环境变量来配置您的实例。您可以在 `package
150
150
| S3_STORAGE_SECRET_ACCESS_KEY | AWS 密钥 (Secret Key) | 字符串 | |
151
151
| S3_STORAGE_REGION | S3 存储地区 | 字符串 | |
152
152
| S3_ENDPOINT_URL | S3 端点 URL | 字符串 | |
153
- | S3_FORCE_PATH_STYLE | 将其设置为 true 以强制请求使用路径样式寻址 | Boolean | false |
153
+ | S3_FORCE_PATH_STYLE | 将其设置为 true 以强制请求使用路径样式寻址 | 布尔值 | false |
154
154
| SHOW_COMMUNITY_NODES | 显示由社区创建的节点 | 布尔值 | |
155
+ | DISABLED_NODES | 从界面中隐藏节点(以逗号分隔的节点名称列表) | 字符串 | |
155
156
156
157
您也可以在使用 ` npx` 时指定环境变量。例如:
157
158
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ PORT=3000
52
52
53
53
# APIKEY_STORAGE_TYPE=json (json | db)
54
54
# SHOW_COMMUNITY_NODES=true
55
+ # DISABLED_NODES=bufferMemory,chatOpenAI (comma separated list of node names to disable)
55
56
56
57
# #####################
57
58
# METRICS COLLECTION
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export class NodesPool {
24
24
* Initialize nodes
25
25
*/
26
26
private async initializeNodes ( ) {
27
+ const disabled_nodes = process . env . DISABLED_NODES ? process . env . DISABLED_NODES . split ( ',' ) : [ ]
27
28
const packagePath = getNodeModulesPackagePath ( 'flowise-components' )
28
29
const nodesPath = path . join ( packagePath , 'dist' , 'nodes' )
29
30
const nodeFiles = await this . getFiles ( nodesPath )
@@ -65,7 +66,9 @@ export class NodesPool {
65
66
let conditionTwo = true
66
67
if ( ! isCommunityNodesAllowed && isAuthorPresent ) conditionTwo = false
67
68
68
- if ( conditionOne && conditionTwo ) {
69
+ const isDisabled = disabled_nodes . includes ( newNodeInstance . name )
70
+
71
+ if ( conditionOne && conditionTwo && ! isDisabled ) {
69
72
this . componentNodes [ newNodeInstance . name ] = newNodeInstance
70
73
}
71
74
}
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ export default class Start extends Command {
56
56
S3_STORAGE_REGION : Flags . string ( ) ,
57
57
S3_ENDPOINT_URL : Flags . string ( ) ,
58
58
S3_FORCE_PATH_STYLE : Flags . string ( ) ,
59
- SHOW_COMMUNITY_NODES : Flags . string ( )
59
+ SHOW_COMMUNITY_NODES : Flags . string ( ) ,
60
+ DISABLED_NODES : Flags . string ( )
60
61
}
61
62
62
63
async stopProcess ( ) {
@@ -100,6 +101,7 @@ export default class Start extends Command {
100
101
if ( flags . NUMBER_OF_PROXIES ) process . env . NUMBER_OF_PROXIES = flags . NUMBER_OF_PROXIES
101
102
if ( flags . DISABLE_CHATFLOW_REUSE ) process . env . DISABLE_CHATFLOW_REUSE = flags . DISABLE_CHATFLOW_REUSE
102
103
if ( flags . SHOW_COMMUNITY_NODES ) process . env . SHOW_COMMUNITY_NODES = flags . SHOW_COMMUNITY_NODES
104
+ if ( flags . DISABLED_NODES ) process . env . DISABLED_NODES = flags . DISABLED_NODES
103
105
104
106
// Authorization
105
107
if ( flags . FLOWISE_USERNAME ) process . env . FLOWISE_USERNAME = flags . FLOWISE_USERNAME
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ const SpeechToText = ({ dialogProps }) => {
306
306
newVal [ provider . name ] = { ...speechToText [ provider . name ] , status : false }
307
307
}
308
308
} )
309
- if ( providerName !== 'none' ) {
309
+ if ( providerName !== 'none' && newVal [ 'none' ] ) {
310
310
newVal [ 'none' ] . status = false
311
311
}
312
312
}
You can’t perform that action at this time.
0 commit comments