Spaces:
Running
Running
Update main.py
Browse files
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 =
|
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:
|