mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 05:46:13 +00:00
perf: 优化导入
This commit is contained in:
@@ -1,27 +1,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from .bootutils import files
|
|
||||||
from .bootutils import log
|
|
||||||
from .bootutils import config
|
|
||||||
|
|
||||||
from . import app
|
from . import app
|
||||||
from ..pipeline import pool
|
|
||||||
from ..pipeline import controller
|
|
||||||
from ..pipeline import stagemgr
|
|
||||||
from ..audit import identifier
|
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
|
from . import stage
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import typing
|
|||||||
from . import app
|
from . import app
|
||||||
|
|
||||||
|
|
||||||
preregistered_stages: list[typing.Type[BootingStage]] = {}
|
preregistered_stages: dict[str, typing.Type[BootingStage]] = {}
|
||||||
|
|
||||||
def stage_class(
|
def stage_class(
|
||||||
name: str
|
name: str
|
||||||
|
|||||||
Reference in New Issue
Block a user