This commit is contained in:
2025-08-19 14:02:48 +08:00
parent 217f5b2266
commit 0440e8c817
44 changed files with 1439 additions and 10 deletions

View File

@@ -18,6 +18,7 @@ from Routes.TeachingModel.api.DmController import router as dm_router
from Routes.TeachingModel.api.ThemeController import router as theme_router
from Routes.TeachingModel.api.DocumentController import router as document_router
from Routes.TeachingModel.api.TeachingModelController import router as teaching_model_router
from Routes.QA import router as qa_router
from Util.LightRagUtil import *
from contextlib import asynccontextmanager
@@ -53,8 +54,8 @@ app.include_router(ggb_router) # Geogebra路由
app.include_router(rag_router) # LightRAG路由
app.include_router(knowledge_router) # 知识图谱路由
app.include_router(oss_router) # 阿里云OSS路由
app.include_router(llm_router) # 大模型路由
app.include_router(qa_router) # 答疑路由
# Teaching Model 相关路由
# 登录相关(不用登录)
@@ -69,6 +70,9 @@ app.include_router(theme_router, prefix="/api/theme", tags=["theme"])
app.include_router(document_router, prefix="/api/document", tags=["document"])
# 问题相关(大模型应用)
app.include_router(teaching_model_router, prefix="/api/teaching/model", tags=["teacher_model"])
# 教学答疑
app.include_router(teaching_model_router, prefix="/api/teaching/model", tags=["teacher_model"])
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8100)