feat: 删除oss相关代码

This commit is contained in:
RockChinQ
2024-05-16 20:32:30 +08:00
parent 6bc6f77af1
commit 37ef1c9fab
15 changed files with 26 additions and 295 deletions

View File

@@ -15,7 +15,6 @@ from ..command import cmdmgr
from ..plugin import manager as plugin_mgr
from ..pipeline import pool
from ..pipeline import controller, stagemgr
from ..oss import oss
from ..utils import version as version_mgr, proxy as proxy_mgr
@@ -72,8 +71,6 @@ class Application:
proxy_mgr: proxy_mgr.ProxyManager = None
oss_mgr: oss.OSSServiceManager = None
logger: logging.Logger = None
def __init__(self):

View File

@@ -14,7 +14,6 @@ required_deps = {
"yaml": "pyyaml",
"aiohttp": "aiohttp",
"psutil": "psutil",
"oss2": "oss2",
}

View File

@@ -14,8 +14,6 @@ from ...provider.modelmgr 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 ...oss import oss as oss_mgr
@stage.stage_class("BuildAppStage")
class BuildAppStage(stage.BootingStage):
@@ -69,10 +67,6 @@ class BuildAppStage(stage.BootingStage):
await cmd_mgr_inst.initialize()
ap.cmd_mgr = cmd_mgr_inst
oss_mgr_inst = oss_mgr.OSSServiceManager(ap)
await oss_mgr_inst.initialize()
ap.oss_mgr = oss_mgr_inst
llm_model_mgr_inst = llm_model_mgr.ModelManager(ap)
await llm_model_mgr_inst.initialize()
ap.model_mgr = llm_model_mgr_inst

View File

@@ -4,8 +4,8 @@ import importlib
from .. import stage, app
from ...config import migration
from ...config.migrations import m001_sensitive_word_migration, m002_openai_config_migration, m003_anthropic_requester_cfg_completion, m004_moonshot_cfg_completion
from ...config.migrations import m005_deepseek_cfg_completion, m006_vision_and_oss_config
from ...config.migrations import m001_sensitive_word_migration, m002_openai_config_migration, m003_anthropic_requester_cfg_completion, m004_moonshot_cfg_completion, m006_vision_config
from ...config.migrations import m005_deepseek_cfg_completion
@stage.stage_class("MigrationStage")