WildOjisan commited on
Commit
8b10582
·
1 Parent(s): 80cb726
Files changed (1) hide show
  1. routers/llm_router.py +15 -0
routers/llm_router.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import APIRouter, Form, File, UploadFile
2
+ from utils.common import CommonResponse
3
+ from utils.db import get_connection
4
+
5
+ router = APIRouter(
6
+ prefix="/llm",
7
+ tags=["llm"]
8
+ )
9
+
10
+ @router.get("/")
11
+ def test_home():
12
+ try:
13
+ return CommonResponse(success=True)
14
+ except Exception as e:
15
+ return CommonResponse(success=False, msg=str(e))