원 레포랑 완전 분리
This commit is contained in:
17
workspace/routers/model_router.py
Normal file
17
workspace/routers/model_router.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from fastapi import APIRouter
|
||||
from services.model_service import ModelInfoService
|
||||
|
||||
router = APIRouter(tags=["Model Management"])
|
||||
|
||||
|
||||
# ✅ GET:사용 가능한 모델 조회 API
|
||||
@router.get(
|
||||
"/info",
|
||||
summary="'/extract', '/general' 에서 사용 가능한 모델 목록 확인",
|
||||
description="""
|
||||
✅ 'inner(내부용)' 와 'outer(외부용)' 모델의 사용 가능한 목록을 확인합니다.<br>
|
||||
✅ 'Try it out' → 'Execute' 순서로 클릭합니다.<br>
|
||||
""",
|
||||
)
|
||||
async def get_model_info():
|
||||
return await ModelInfoService.get_model_info()
|
||||
Reference in New Issue
Block a user