优化模型初始化代码

This commit is contained in:
wanyaokun
2024-09-04 15:00:38 +08:00
parent 728ee06c5a
commit 97a486e631
6 changed files with 438 additions and 229 deletions
-3
View File
@@ -24,14 +24,11 @@ from app.api.routers.services.fileServices import PrjFileLoadService,ChatFileSer
from app.api.routers.services.suggestion import NextQuestionSuggestion
import time
from llama_index.core.settings import Settings
from llama_index.core.callbacks import CallbackManager
logger = logging.getLogger("uvicorn")
v1_router = v = APIRouter()
Settings.llm.callback_manager = CallbackManager()
gEvent_handler = None