ParthSadaria commited on
Commit
0155ff8
·
verified ·
1 Parent(s): 4466943

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -6
main.py CHANGED
@@ -142,12 +142,7 @@ async def get_models():
142
  async def fetch_models():
143
  return await get_models()
144
 
145
-
146
- from fastapi import HTTPException
147
- from fastapi.responses import JSONResponse
148
-
149
- server_status = False # Set to False to simulate the server being down
150
-
151
  @app.post("/chat/completions")
152
  @app.post("/v1/chat/completions")
153
  async def get_completion(payload: Payload, request: Request):
 
142
  async def fetch_models():
143
  return await get_models()
144
 
145
+ server_status = True #working
 
 
 
 
 
146
  @app.post("/chat/completions")
147
  @app.post("/v1/chat/completions")
148
  async def get_completion(payload: Payload, request: Request):