mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-14 22:43:49 +00:00
feature: add plugin of dashboard (#201)
This commit is contained in:
parent
77d2abba5d
commit
25c34cb48f
@ -667,7 +667,8 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
logger.info(f"args: {args}")
|
logger.info(f"args: {args}")
|
||||||
# 配置初始化
|
|
||||||
|
# init config
|
||||||
cfg = Config()
|
cfg = Config()
|
||||||
|
|
||||||
load_native_plugins(cfg)
|
load_native_plugins(cfg)
|
||||||
@ -676,12 +677,12 @@ if __name__ == "__main__":
|
|||||||
async_db_summery()
|
async_db_summery()
|
||||||
cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode))
|
cfg.set_plugins(scan_plugins(cfg, cfg.debug_mode))
|
||||||
|
|
||||||
# 加载插件可执行命令
|
# Loader plugins and commands
|
||||||
command_categories = [
|
command_categories = [
|
||||||
"pilot.commands.built_in.audio_text",
|
"pilot.commands.built_in.audio_text",
|
||||||
"pilot.commands.built_in.image_gen",
|
"pilot.commands.built_in.image_gen",
|
||||||
]
|
]
|
||||||
# 排除禁用命令
|
# exclude commands
|
||||||
command_categories = [
|
command_categories = [
|
||||||
x for x in command_categories if x not in cfg.disabled_command_categories
|
x for x in command_categories if x not in cfg.disabled_command_categories
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user