Skip to content

Commit 5fe525b

Browse files
committed
refac
1 parent f5b196c commit 5fe525b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/open_webui/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,8 @@ def reachable(host: str, port: int) -> bool:
19871987

19881988
ENABLE_AUTOMATIONS = os.getenv('ENABLE_AUTOMATIONS', 'True').lower() == 'true'
19891989

1990+
ENABLE_SUBAGENTS = os.getenv('ENABLE_SUBAGENTS', 'False').lower() == 'true'
1991+
19901992
AUTOMATION_MAX_COUNT = os.getenv('AUTOMATION_MAX_COUNT', '')
19911993

19921994
AUTOMATION_MIN_INTERVAL = os.getenv('AUTOMATION_MIN_INTERVAL', '')
@@ -3019,6 +3021,7 @@ def feishu_oauth_register(oauth: OAuth):
30193021
'channels.enable': ENABLE_CHANNELS,
30203022
'calendar.enable': ENABLE_CALENDAR,
30213023
'automations.enable': ENABLE_AUTOMATIONS,
3024+
'subagents.enable': ENABLE_SUBAGENTS,
30223025
'automations.max_count': AUTOMATION_MAX_COUNT,
30233026
'automations.min_interval': AUTOMATION_MIN_INTERVAL,
30243027
'automations.auth_token_expires_in': AUTOMATION_AUTH_TOKEN_EXPIRES_IN,

0 commit comments

Comments
 (0)