Niansuh commited on
Commit
9c47c14
·
verified ·
1 Parent(s): 8ce0841

Update api/routes.py

Browse files
Files changed (1) hide show
  1. api/routes.py +3 -3
api/routes.py CHANGED
@@ -13,7 +13,7 @@ logger = setup_logger(__name__)
13
 
14
  router = APIRouter()
15
 
16
- @router.options("/v1/gizai/chat/completions")
17
  @router.options("/api/v1/gizai/chat/completions")
18
  async def gizai_chat_completions_options():
19
  return Response(
@@ -25,12 +25,12 @@ async def gizai_chat_completions_options():
25
  },
26
  )
27
 
28
- @router.get("/v1/gizai/models")
29
  @router.get("/api/v1/gizai/models")
30
  async def list_gizai_models():
31
  return {"object": "list", "data": GizAI.models} # Access GizAI.models directly
32
 
33
- @router.post("/v1/gizai/chat/completions")
34
  @router.post("/api/v1/gizai/chat/completions")
35
  async def gizai_chat_completions(
36
  request: ChatRequest, app_secret: str = Depends(verify_app_secret)
 
13
 
14
  router = APIRouter()
15
 
16
+ @router.options("/v1/chat/completions")
17
  @router.options("/api/v1/gizai/chat/completions")
18
  async def gizai_chat_completions_options():
19
  return Response(
 
25
  },
26
  )
27
 
28
+ @router.get("/v1/models")
29
  @router.get("/api/v1/gizai/models")
30
  async def list_gizai_models():
31
  return {"object": "list", "data": GizAI.models} # Access GizAI.models directly
32
 
33
+ @router.post("/v1/chat/completions")
34
  @router.post("/api/v1/gizai/chat/completions")
35
  async def gizai_chat_completions(
36
  request: ChatRequest, app_secret: str = Depends(verify_app_secret)