Skip to content

Commit

Permalink
chore: 删除已弃用的文件
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jan 28, 2024
1 parent b5924bb commit 238c55a
Show file tree
Hide file tree
Showing 41 changed files with 3 additions and 2,808 deletions.
1 change: 0 additions & 1 deletion pkg/config/manager.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from . import model as file_model
from ..utils import context
from .impls import pymodule, json as json_file


Expand Down
3 changes: 0 additions & 3 deletions pkg/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import asyncio

from ..qqbot import manager as qqbot_mgr
from ..openai import manager as openai_mgr
from ..openai.session import sessionmgr as llm_session_mgr
from ..openai.requester import modelmgr as llm_model_mgr
from ..openai.sysprompt import sysprompt as llm_prompt_mgr
Expand All @@ -21,8 +20,6 @@
class Application:
im_mgr: qqbot_mgr.QQBotManager = None

llm_mgr: openai_mgr.OpenAIInteract = None

cmd_mgr: cmdmgr.CommandManager = None

sess_mgr: llm_session_mgr.SessionManager = None
Expand Down
6 changes: 1 addition & 5 deletions pkg/core/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from ..pipeline import stagemgr
from ..audit import identifier
from ..database import manager as db_mgr
from ..openai import manager as llm_mgr
from ..openai.session import sessionmgr as llm_session_mgr
from ..openai.requester import modelmgr as llm_model_mgr
from ..openai.sysprompt import sysprompt as llm_prompt_mgr
Expand Down Expand Up @@ -107,9 +106,6 @@ async def make_app() -> app.Application:
db_mgr_inst.initialize_database()
ap.db_mgr = db_mgr_inst

llm_mgr_inst = llm_mgr.OpenAIInteract(ap)
ap.llm_mgr = llm_mgr_inst

cmd_mgr_inst = cmdmgr.CommandManager(ap)
await cmd_mgr_inst.initialize()
ap.cmd_mgr = cmd_mgr_inst
Expand All @@ -130,7 +126,7 @@ async def make_app() -> app.Application:
await llm_tool_mgr_inst.initialize()
ap.tool_mgr = llm_tool_mgr_inst

im_mgr_inst = im_mgr.QQBotManager(first_time_init=True, ap=ap)
im_mgr_inst = im_mgr.QQBotManager(ap=ap)
await im_mgr_inst.initialize()
ap.im_mgr = im_mgr_inst

Expand Down
134 changes: 0 additions & 134 deletions pkg/openai/dprompt.py

This file was deleted.

46 changes: 0 additions & 46 deletions pkg/openai/funcmgr.py

This file was deleted.

103 changes: 0 additions & 103 deletions pkg/openai/keymgr.py

This file was deleted.

Loading

0 comments on commit 238c55a

Please sign in to comment.