perf: 优化导入

This commit is contained in:
RockChinQ 2024-03-02 16:39:29 +08:00
parent c89623967e
commit cac8a0a414
2 changed files with 1 additions and 21 deletions

View File

@ -1,27 +1,7 @@
from __future__ import print_function
import sys
from .bootutils import files
from .bootutils import log
from .bootutils import config
from . import app
from ..pipeline import pool
from ..pipeline import controller
from ..pipeline import stagemgr
from ..audit import identifier
from ..provider.session import sessionmgr as llm_session_mgr
from ..provider.requester import modelmgr as llm_model_mgr
from ..provider.sysprompt import sysprompt as llm_prompt_mgr
from ..provider.tools import toolmgr as llm_tool_mgr
from ..platform import manager as im_mgr
from ..command import cmdmgr
from ..plugin import manager as plugin_mgr
from ..audit.center import v2 as center_v2
from ..utils import version, proxy, announce
from .stages import build_app, load_config, setup_logger
from . import stage

View File

@ -6,7 +6,7 @@ import typing
from . import app
preregistered_stages: list[typing.Type[BootingStage]] = {}
preregistered_stages: dict[str, typing.Type[BootingStage]] = {}
def stage_class(
name: str