feat:添加模型列表获取API路由

This commit is contained in:
墨梓柒
2025-11-26 22:42:46 +08:00
parent 74d563ad38
commit 0a0fb8ee55
2 changed files with 245 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ from .emoji_routes import router as emoji_router
from .plugin_routes import router as plugin_router
from .plugin_progress_ws import get_progress_router
from .routers.system import router as system_router
from .model_routes import router as model_router
logger = get_logger("webui.api")
@@ -35,6 +36,8 @@ router.include_router(plugin_router)
router.include_router(get_progress_router())
# 注册系统控制路由
router.include_router(system_router)
# 注册模型列表获取路由
router.include_router(model_router)
class TokenVerifyRequest(BaseModel):