diff --git a/apps/agentfabric/config_utils.py b/apps/agentfabric/config_utils.py index d22ca39c..4ea06826 100644 --- a/apps/agentfabric/config_utils.py +++ b/apps/agentfabric/config_utils.py @@ -166,10 +166,11 @@ def parse_configuration(uuid_str='', use_tool_api=False): # for tool hub only if '/' in key: tool_cfg[key] = value - if value['use']: - available_tool_list.append(key) + if 'is_openapi' in value and value['is_openapi']: available_plugin_list.append(key) + elif value['use']: + available_tool_list.append(key) plugin_cfg = {} if len(available_plugin_list) == 0: