ParthSadaria commited on
Commit
3e08506
·
verified ·
1 Parent(s): 9d4bb07

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -143,7 +143,7 @@ async def get_models():
143
  @app.get("/models")
144
  async def fetch_models():
145
  return await get_models()
146
- server_status = True #working
147
  @app.post("/chat/completions")
148
  @app.post("api/v1/chat/completions")
149
  async def get_completion(payload: Payload, request: Request):
@@ -184,9 +184,9 @@ async def get_completion(payload: Payload, request: Request):
184
  # Prepare custom headers
185
  custom_headers = {
186
  'DNT': '1',
187
- 'Origin': ENDPOINT_ORIGIN,
188
  'Priority': 'u=1, i',
189
- 'Referer': ENDPOINT_ORIGIN
190
  }
191
 
192
  try:
 
143
  @app.get("/models")
144
  async def fetch_models():
145
  return await get_models()
146
+ server_status = False #working soon:)
147
  @app.post("/chat/completions")
148
  @app.post("api/v1/chat/completions")
149
  async def get_completion(payload: Payload, request: Request):
 
184
  # Prepare custom headers
185
  custom_headers = {
186
  'DNT': '1',
187
+ # 'Origin': ENDPOINT_ORIGIN,
188
  'Priority': 'u=1, i',
189
+ # 'Referer': ENDPOINT_ORIGIN
190
  }
191
 
192
  try: